]> git.saurik.com Git - apt.git/blame - vendor/makefile
add apt-vendor information for tanglu
[apt.git] / vendor / makefile
CommitLineData
eef71f11
DK
1# -*- make -*-
2BASE=..
3SUBDIR=vendor
4
5# Bring in the default rules
6include ../buildlib/defaults.mak
7
8all headers library binary program doc manpages debiandoc test update-po startup dirs: current
9all: all/subdirs
10binary: binary/subdirs
11doc: doc/subdirs
12clean: clean/subdirs
13veryclean: veryclean/subdirs
14dirs: dirs/subdirs
5cc8cbf3 15manpages: manpages/subdirs
eef71f11 16
5cc8cbf3 17all/subdirs binary/subdirs doc/subdirs dirs/subdirs manpages/subdirs:
eef71f11
DK
18 $(MAKE) -C current $(patsubst %/subdirs,%,$@)
19
20clean/subdirs veryclean/subdirs:
21 test ! -e current || $(MAKE) -C current $(patsubst %/subdirs,%,$@)
22
23current:
24 rm -f $@
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 \
28 ln -s $$DISTRO $@; \
29 break; \
30 fi; \
31 done
32 # if we haven't found a specific, look for a deriving in hardcoded order
33 test -e $@ || \
34 (dpkg-vendor --derives-from ubuntu && cp ln -s ubuntu $@ ) || \
bef4b142 35 (dpkg-vendor --derives-from tanglu && cp ln -s tanglu $@ ) || \
eef71f11
DK
36 ln -s debian $@
37
38.PHONY: clean veryclean all binary vendor
bef4b142 39.NOPARALLEL:
eef71f11
DK
40
41clean: clean/current
42
43clean/current:
44 test ! -e current || $(MAKE) -C current clean
45 rm -f current