1
SUBDIRS = scripts tests
4
install: $(SUBDIRS:%=%/__install__)
5
uninstall: $(SUBDIRS:%=%/__uninstall__)
7
cd tests && $(MAKE) test
8
clean: $(SUBDIRS:%=%/__clean__)
9
distclean: clean $(SUBDIRS:%=%/__distclean__)
10
rm -f config.* Makefile
13
release: $(SUBDIRS:%=%/__release__) distclean
17
@echo "Usage: make [install|uninstall|release]"
19
.PHONY: all install uninstall clean distclean dummy
25
$(SUBDIRS:%=%/__uninstall__): dummy
26
cd `dirname $@` && $(MAKE) uninstall
28
$(SUBDIRS:%=%/__install__): dummy
29
cd `dirname $@` && $(MAKE) install
31
$(SUBDIRS:%=%/__clean__): dummy
32
cd `dirname $@` && $(MAKE) clean
34
$(SUBDIRS:%=%/__release__): dummy
35
cd `dirname $@` && $(MAKE) release
37
$(SUBDIRS:%=%/__distclean__): dummy
38
cd `dirname $@` && $(MAKE) distclean