Makefile 854 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ROOTDIR = $(CURDIR)
  2. include makefiles/platforms.mk
  3. ZLIBDIRS = zlibrary/core zlibrary/text zlibrary/ui
  4. APPDIRS = fbreader
  5. all:
  6. @for dir in $(ZLIBDIRS) $(APPDIRS); do \
  7. if [ -d $$dir ]; then \
  8. cd $$dir; \
  9. if ! $(MAKE); then \
  10. exit 1; \
  11. fi; \
  12. cd $(ROOTDIR); \
  13. fi; \
  14. done;
  15. install: all do_install
  16. do_install:
  17. @for dir in $(ZLIBDIRS) $(APPDIRS); do \
  18. if [ -d $$dir ]; then \
  19. cd $$dir; make $@; cd $(ROOTDIR); \
  20. fi; \
  21. done
  22. do_install_dev:
  23. @for dir in $(ZLIBDIRS); do \
  24. if [ -d $$dir ]; then \
  25. cd $$dir; make $@; cd $(ROOTDIR); \
  26. fi; \
  27. done
  28. clean:
  29. @for dir in $(ZLIBDIRS) $(APPDIRS); do \
  30. if [ -d $$dir ]; then \
  31. cd $$dir; make $@; cd $(ROOTDIR); \
  32. fi; \
  33. done
  34. distclean: clean
  35. @rm -rvf *.tgz *.tar.gz *.ipk *.deb *.prc *.exe *.log *.dsc *.changes *.rpm
  36. @rm -rf tmp packages packages-nonGPL fbreader-*