]> git.saurik.com Git - apt.git/commitdiff
improve clean for auto-generated sources.list
authorMichael Vogt <mvo@debian.org>
Sat, 22 Feb 2014 17:22:04 +0000 (18:22 +0100)
committerMichael Vogt <mvo@debian.org>
Sat, 22 Feb 2014 17:22:04 +0000 (18:22 +0100)
vendor/debian/makefile
vendor/raspbian/makefile
vendor/steamos/makefile
vendor/ubuntu/makefile

index a1bb74f9bb92c2c9d4cc86f0d729f1730999ad18..25bc0350cca45828b7ad3728ffdc7a8175812829 100644 (file)
@@ -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
 
index e5513ead4821d36026f686f1fbddbffa0b9b7659..c4464900fbcae85f2910bf2dbe63362fb4715447 100644 (file)
@@ -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
index 45ea18be2f0406fe39259f3323b14ad7685adb99..9ee0e65a25931b02f3386e28925df61815bb6b41 100644 (file)
@@ -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
 
index 1fe138d2bbf7c34132c8a013c717009c77b4104d..afcaaf718313399414f87b32779fe41b07643433 100644 (file)
@@ -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