OLD | NEW |
(Empty) | |
| 1 SUBDIRS = scripts tests |
| 2 |
| 3 all: $(SUBDIRS) |
| 4 install: $(SUBDIRS:%=%/__install__) |
| 5 uninstall: $(SUBDIRS:%=%/__uninstall__) |
| 6 test: dummy |
| 7 cd tests && $(MAKE) test |
| 8 clean: $(SUBDIRS:%=%/__clean__) |
| 9 distclean: clean $(SUBDIRS:%=%/__distclean__) |
| 10 rm -f config.* Makefile |
| 11 rm -rf autom4te.cache |
| 12 |
| 13 release: $(SUBDIRS:%=%/__release__) distclean |
| 14 rm -f *~ |
| 15 |
| 16 help: |
| 17 @echo "Usage: make [install|uninstall|release]" |
| 18 |
| 19 .PHONY: all install uninstall clean distclean dummy |
| 20 dummy: |
| 21 |
| 22 $(SUBDIRS): dummy |
| 23 @cd $@ && $(MAKE) |
| 24 |
| 25 $(SUBDIRS:%=%/__uninstall__): dummy |
| 26 cd `dirname $@` && $(MAKE) uninstall |
| 27 |
| 28 $(SUBDIRS:%=%/__install__): dummy |
| 29 cd `dirname $@` && $(MAKE) install |
| 30 |
| 31 $(SUBDIRS:%=%/__clean__): dummy |
| 32 cd `dirname $@` && $(MAKE) clean |
| 33 |
| 34 $(SUBDIRS:%=%/__release__): dummy |
| 35 cd `dirname $@` && $(MAKE) release |
| 36 |
| 37 $(SUBDIRS:%=%/__distclean__): dummy |
| 38 cd `dirname $@` && $(MAKE) distclean |
| 39 |
OLD | NEW |