5 # Bring in the default rules
6 include ../buildlib/defaults.mak
8 all headers library binary program doc manpages debiandoc test update-po startup dirs: current
10 binary: binary/subdirs
13 veryclean: veryclean/subdirs
15 manpages: manpages/subdirs
17 all/subdirs binary/subdirs doc/subdirs dirs/subdirs manpages/subdirs:
18 $(MAKE) -C current $(patsubst %/subdirs,%,$@)
20 clean/subdirs veryclean/subdirs:
21 test ! -e current || $(MAKE) -C current $(patsubst %/subdirs,%,$@)
25 # search for an exact match to use the correct sources.list example
26 find -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f 2 | while read DISTRO; do \
27 if dpkg-vendor --is $$DISTRO; then \
32 # if we haven't found a specific, look for a deriving in hardcoded order
34 (dpkg-vendor --derives-from ubuntu && cp ln -s ubuntu $@ ) || \
37 .PHONY: clean veryclean all binary vendor
42 test ! -e current || $(MAKE) -C current clean