]>
Commit | Line | Data |
---|---|---|
1 | # -*- make -*- | |
2 | BASE=../.. | |
3 | SUBDIR=vendor/@@VENDOR@@ | |
4 | ||
5 | # Bring in the default rules | |
6 | include ../../buildlib/defaults.mak | |
7 | ||
8 | doc binary manpages: sources.list | |
9 | ||
10 | sources.list: sources.list.in ../../doc/apt-verbatim.ent | |
11 | while read line; do \ | |
12 | if [ "$${line}" = '&sourceslist-list-format;' ]; then \ | |
13 | $(BASE)/vendor/getinfo vendor sourceslist-list-format ; \ | |
14 | else \ | |
15 | echo "$${line}"; \ | |
16 | fi \ | |
17 | done < $< | sed -e 's#&debian-stable-codename;#$(shell ../getinfo debian-stable-codename)#g' \ | |
18 | -e 's#&debian-oldstable-codename;#$(shell ../getinfo debian-oldstable-codename)#g' \ | |
19 | -e 's#&debian-testing-codename;#$(shell ../getinfo debian-testing-codename)#g' \ | |
20 | -e 's#&ubuntu-codename;#$(shell ../getinfo ubuntu-codename)#g' \ | |
21 | -e 's#¤t-codename;#$(shell ../getinfo current-codename)#g' \ | |
22 | > $@ | |
23 | ||
24 | clean: clean/sources.list | |
25 | veryclean: clean/sources.list | |
26 | ||
27 | clean/sources.list: | |
28 | rm -f sources.list |