key press handling only in NORMALSTATE
[lbook_fbreader.git] / Makefile
blob93727e68c009f33dde6eca9e44e5b3516b878fed
1 ROOTDIR = $(CURDIR)
3 include makefiles/platforms.mk
5 ZLIBDIRS = zlibrary/core zlibrary/text zlibrary/ui
6 APPDIRS = fbreader
8 all:
9 @for dir in $(ZLIBDIRS) $(APPDIRS); do \
10 if [ -d $$dir ]; then \
11 cd $$dir; \
12 if ! $(MAKE); then \
13 exit 1; \
14 fi; \
15 cd $(ROOTDIR); \
16 fi; \
17 done;
19 install: all do_install
21 do_install:
22 @for dir in $(ZLIBDIRS) $(APPDIRS); do \
23 if [ -d $$dir ]; then \
24 cd $$dir; make $@; cd $(ROOTDIR); \
25 fi; \
26 done
28 do_install_dev:
29 @for dir in $(ZLIBDIRS); do \
30 if [ -d $$dir ]; then \
31 cd $$dir; make $@; cd $(ROOTDIR); \
32 fi; \
33 done
35 clean:
36 @for dir in $(ZLIBDIRS) $(APPDIRS); do \
37 if [ -d $$dir ]; then \
38 cd $$dir; make $@; cd $(ROOTDIR); \
39 fi; \
40 done
42 distclean: clean
43 @rm -rvf *.tgz *.tar.gz *.ipk *.deb *.prc *.exe *.log *.dsc *.changes *.rpm
44 @rm -rf tmp packages packages-nonGPL fbreader-*