From: Stefan Bund Date: Tue, 10 Nov 2009 09:58:02 +0000 (+0100) Subject: Update clean target X-Git-Url: http://g0dil.de/git?p=mapsector.git;a=commitdiff_plain;h=47d79498abf1a1488c0097d88b70e79063816e71 Update clean target --- diff --git a/Makefile b/Makefile index e004e09..eee1a41 100644 --- 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