Update clean target
Stefan Bund [Tue, 10 Nov 2009 09:58:02 +0000 (10:58 +0100)]
Makefile

index e004e09..eee1a41 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,11 @@ mapsectorsh: mapsector lib/00_version.sh $(wildcard lib/[0-9][0-9]_*.sh)
 
 NAME       := mapsector
 CLOGDIR    := .git/changelogs
-CHANGELOGS := $(shell lasttag=HEAD;                                                            \
-                      (git tag -l 'v*'; echo)                                                  \
-                          | while read tag; do                                                 \
-                             echo $(CLOGDIR)/$${tag}$${tag:+-}$$lasttag;       \
-                              lasttag=$$tag;                                                   \
+CHANGELOGS := $(shell lasttag=HEAD;                                            \
+                      (git tag -l 'v*'; echo)                                  \
+                          | while read tag; do                                 \
+                             echo $(CLOGDIR)/$${tag}$${tag:+-}$$lasttag;       \
+                              lasttag=$$tag;                                   \
                           done)
 
 $(CHANGELOGS): %:
@@ -71,8 +71,10 @@ prepare: lib/00_version.sh debian/changelog
 .PHONY: prepare
 
 clean:
+       fakeroot debian/rules clean
        rm -f mapsectorsh
        rm -f debian/changelog
        rm -f lib/00_version.sh
        rm -rf .git/changelogs
+
 .PHONY: clean