This repository was archived by the owner on Mar 22, 2020. It is now read-only.
forked from geometer/FBReader
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (53 loc) · 1.14 KB
/
Makefile
File metadata and controls
61 lines (53 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ROOTDIR = $(CURDIR)
include makefiles/platforms.mk
ZLIBDIRS = zlibrary/core zlibrary/text zlibrary/ui
#APPDIRS = fbreader
APPDIRS = fbookshelf
WEBVIEW = cookieUtility
all:
for dir in $(ZLIBDIRS) $(APPDIRS); do \
if [ -d $$dir ]; then \
cd $$dir; \
if ! $(MAKE); then \
exit 1; \
fi; \
cd $(ROOTDIR); \
fi; \
done; \
for dir in $(WEBVIEW); do \
cd $$dir;\
bash mk.sh; \
cd $(ROOTDIR); \
done; \
no-cookie:
for dir in $(ZLIBDIRS) $(APPDIRS); do \
if [ -d $$dir ]; then \
cd $$dir; \
if ! $(MAKE); then \
exit 1; \
fi; \
cd $(ROOTDIR); \
fi; \
done;
install: all do_install
do_install:
@for dir in $(ZLIBDIRS) $(APPDIRS); do \
if [ -d $$dir ]; then \
cd $$dir; make $@; cd $(ROOTDIR); \
fi; \
done
do_install_dev:
@for dir in $(ZLIBDIRS); do \
if [ -d $$dir ]; then \
cd $$dir; make $@; cd $(ROOTDIR); \
fi; \
done
clean:
@for dir in $(ZLIBDIRS) $(APPDIRS); do \
if [ -d $$dir ]; then \
cd $$dir; make $@; cd $(ROOTDIR); \
fi; \
done
distclean: clean
@rm -rvf *.tgz *.tar.gz *.ipk *.deb *.prc *.exe *.log *.dsc *.changes *.rpm
@rm -rf tmp packages packages-nonGPL fbreader-*