diff options
author | roktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-10-30 12:36:32 +0000 |
---|---|---|
committer | roktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2006-10-30 12:36:32 +0000 |
commit | 45f317e71f734358f6e9989c6937f3faf6398d18 (patch) | |
tree | 5bc0b43647a1c2670e3a80ee2d9ff1754e2bb5d1 /Makefile | |
parent | 1ba9113d7e0541658d90c02ac58198398c161256 (diff) | |
download | pandoc-45f317e71f734358f6e9989c6937f3faf6398d18.tar.gz |
Ensure that we have always up-to-date version of ChangeLog before creating
a Debian package. Make 'ChangeLog' target PHONY to force an update.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@46 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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; \ |