]>
Commit | Line | Data |
---|---|---|
6322370b AL |
1 | # -*- make -*- |
2 | ||
3 | # This is the top level make file for APT, it recurses to each lower | |
4 | # level make file and runs it with the proper target | |
93bf083d | 5 | ifndef NOISY |
6322370b | 6 | .SILENT: |
93bf083d | 7 | endif |
6322370b AL |
8 | |
9 | .PHONY: headers library clean veryclean all binary program doc | |
10 | all headers library clean veryclean binary program doc: | |
6322370b | 11 | $(MAKE) -C apt-pkg $@ |
024835dc | 12 | $(MAKE) -C methods $@ |
be4401bf | 13 | # $(MAKE) -C methods/ftp $@ |
1164783d | 14 | $(MAKE) -C cmdline $@ |
880e9be4 AL |
15 | $(MAKE) -C deity $@ |
16 | $(MAKE) -C gui $@ | |
faf4e30c | 17 | $(MAKE) -C doc $@ |
93641593 AL |
18 | |
19 | .PHONY: maintainer-clean dist-clean distclean pristine sanity | |
20 | maintainer-clean dist-clean distclean pristine sanity: veryclean | |
93bf083d AL |
21 | |
22 | ||
23 | # The startup target builds the necessary configure scripts. It should | |
24 | # be used after a CVS checkout. | |
25 | .PHONY: startup | |
5d36c2f2 AL |
26 | BUILD=build |
27 | CONVERTED=$(BUILD)/environment.mak $(BUILD)/include/config.h $(BUILD)/makefile | |
28 | startup: configure $(CONVERTED) | |
93bf083d AL |
29 | |
30 | configure: aclocal.m4 configure.in | |
31 | autoconf | |
32 | ||
33 | aclocal.m4: | |
34 | aclocal -I buildlib | |
5d36c2f2 AL |
35 | |
36 | build: | |
37 | mkdir $(BUILD) | |
38 | $(BUILD)/config.status: configure | |
39 | (HERE=`pwd`; cd $(BUILD) && $$HERE/configure) | |
40 | $(BUILD)/include/config.h: buildlib/config.h.in | |
41 | $(BUILD)/environment.mak: buildlib/environment.mak.in | |
42 | $(CONVERTED): | |
43 | (cd $(BUILD) && ./config.status) |