aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2479b55c6..3752bec14 100644
--- a/Makefile
+++ b/Makefile
@@ -197,10 +197,17 @@ tags: $(src_all)
cd $(SRCDIR) && hasktags -c $(src_all:$(SRCDIR)/%=%); \
LC_ALL=C sort tags >tags.sorted; mv tags.sorted tags
-ChangeLog: ../.svn/entries gnuify-changelog.pl
- svn log .. | sed 's/(no author)//' | ./gnuify-changelog.pl >$@
+.PHONY: ChangeLog
+# should always attempt to update ChangeLog, hence .PHONY
+ChangeLog: gnuify-changelog.pl
+ @echo "Updating ChangeLog file before packaging..."
+ svn update ..
+ svn log .. | sed 's/| (no author) |/| |/' | ./gnuify-changelog.pl >$@
+ @if [ -n "$$(svn status $@))" ]; then \
+ echo "*** ChangeLog modified, please commit changes! ***"; \
+ fi
-deb: debian
+deb: debian ChangeLog
[ -x /usr/bin/fakeroot ] || { \
echo "*** Please install fakeroot package. ***"; \
exit 1; \