root / trunk / Makefile

Revision 190, 0.8 kB (checked in by rm, 10 months ago)

clean rules

Line 
1#
2#
3#
4
5#CONFIGURE_OPTS = --prefix=$(SANDBOX)
6PKGS=thrucommon thrudex thrudoc thruqueue
7
8all: $(PKGS)
9
10clean:
11        for i in $(PKGS); do            \
12            (cd $$i && make $@);        \
13        done
14
15distclean:
16        for i in $(PKGS); do            \
17            (cd $$i && make $@);        \
18        done
19
20distclean-am:
21        for i in $(PKGS); do            \
22            (cd $$i && make $@);        \
23        done
24
25thrucommon: thrucommon/Makefile
26        (cd $@ && make all install)
27
28thrudex: thrudex/Makefile
29        (cd $@ && make all install)
30
31thrudoc: thrudoc/Makefile
32        (cd $@ && make all install)
33
34thruqueue: thruqueue/Makefile
35        (cd $@ && make all install)
36
37%/Makefile: %/Makefile.in
38        (cd $(@:/Makefile=) && ./configure $(CONFIGURE_OPTS))
39
40%/Makefile.in: %/Makefile.am
41        (cd $(@:/Makefile.in=) && ./bootstrap.sh)
42
43.PRECIOUS: %/Makefile %/Makefile.in
44.PHONY: thrucommon thrudex thrudoc thruqueue
Note: See TracBrowser for help on using the browser.