summaryrefslogtreecommitdiff
path: root/Makefile.in
blob: cb9c91d3c6eb2f1d3fbb6abf83c3c02f7e802fee (plain)
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
SUBDIRS = scripts tests autotests

all:		$(SUBDIRS)
install:	$(SUBDIRS:%=%/__install__)
uninstall:	$(SUBDIRS:%=%/__uninstall__)
test:		dummy
	cd tests && $(MAKE) test
autotest:
	cd autotests && $(MAKE) test
clean:		$(SUBDIRS:%=%/__clean__)
distclean:	clean $(SUBDIRS:%=%/__distclean__)
	rm -f config.* Makefile
	rm -rf autom4te.cache

release:	$(SUBDIRS:%=%/__release__)
	rm -f *~

help:	
	@echo "Usage: make [install|uninstall|release]"

.PHONY: all install uninstall clean distclean dummy autotest
dummy:

$(SUBDIRS): dummy
	@cd $@ && $(MAKE)

$(SUBDIRS:%=%/__uninstall__): dummy
	cd `dirname $@` && $(MAKE) uninstall

$(SUBDIRS:%=%/__install__): dummy
	cd `dirname $@` && $(MAKE) install

$(SUBDIRS:%=%/__clean__): dummy
	cd `dirname $@` && $(MAKE) clean

$(SUBDIRS:%=%/__release__): dummy
	cd `dirname $@` && $(MAKE) release

$(SUBDIRS:%=%/__distclean__): dummy
	cd `dirname $@` && $(MAKE) distclean