From: Michael Vogt Date: Sat, 22 Feb 2014 17:22:04 +0000 (+0100) Subject: improve clean for auto-generated sources.list X-Git-Tag: 0.9.15.4~12 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/5077916ef802948e6a3faab95b2d2a975438ec26 improve clean for auto-generated sources.list --- diff --git a/vendor/debian/makefile b/vendor/debian/makefile index a1bb74f9b..25bc0350c 100644 --- a/vendor/debian/makefile +++ b/vendor/debian/makefile @@ -10,6 +10,8 @@ doc binary manpages: sources.list sources.list: sources.list.in ../../doc/apt-verbatim.ent sed -e 's#&stable-codename;#$(shell ../getinfo debian-stable-codename)#g' $< > $@ -clean: +clean: clean/sources.list + +clean/sources.list: rm -f sources.list diff --git a/vendor/raspbian/makefile b/vendor/raspbian/makefile index e5513ead4..c4464900f 100644 --- a/vendor/raspbian/makefile +++ b/vendor/raspbian/makefile @@ -10,5 +10,7 @@ doc binary manpages: sources.list sources.list: sources.list.in ../../doc/apt-verbatim.ent sed -e 's#&stable-codename;#$(shell ../getinfo debian-stable-codename)#g' $< > $@ -clean: +clean: clean/sources.list + +clean/sources.list: rm -f sources.list diff --git a/vendor/steamos/makefile b/vendor/steamos/makefile index 45ea18be2..9ee0e65a2 100644 --- a/vendor/steamos/makefile +++ b/vendor/steamos/makefile @@ -10,6 +10,8 @@ doc binary manpages: sources.list sources.list: sources.list.in ../../doc/apt-verbatim.ent sed -e 's#&stable-codename;#$(shell ../getinfo debian-stable-codename)#g' $< | sed -e 's#&steamos-codename;#$(shell ../getinfo current-distro-codename)#g' > $@ -clean: +clean: clean/sources.list + +clean/sources.list: rm -f sources.list diff --git a/vendor/ubuntu/makefile b/vendor/ubuntu/makefile index 1fe138d2b..afcaaf718 100644 --- a/vendor/ubuntu/makefile +++ b/vendor/ubuntu/makefile @@ -10,5 +10,7 @@ doc binary manpages: sources.list sources.list: sources.list.in ../../doc/apt-verbatim.ent sed -e 's#&ubuntu-codename;#$(shell ../getinfo ubuntu-codename)#g' $< > $@ -clean: +clean: clean/sources.list + +clean/sources.list: rm -f sources.list