@@ -197,10 +197,17 @@ tags: $(src_all)
197197 cd $(SRCDIR) && hasktags -c $(src_all:$(SRCDIR)/%=%); \
198198 LC_ALL=C sort tags >tags.sorted; mv tags.sorted tags
199199
200−ChangeLog: ../.svn/entries gnuify-changelog.pl
201− svn log .. | sed 's/(no author)//' | ./gnuify-changelog.pl >$@
200+.PHONY: ChangeLog
201+# should always attempt to update ChangeLog, hence .PHONY
202+ChangeLog: gnuify-changelog.pl
203+ @echo "Updating ChangeLog file before packaging..."
204+ svn update ..
205+ svn log .. | sed 's/| (no author) |/| |/' | ./gnuify-changelog.pl >$@
206+ @if [ -n "$$(svn status $@))" ]; then \
207+ echo "*** ChangeLog modified, please commit changes! ***"; \
208+ fi
202209
203−deb: debian
210+deb: debian ChangeLog
204211 [ -x /usr/bin/fakeroot ] || { \
205212 echo "*** Please install fakeroot package. ***"; \
206213 exit 1; \