Fix ChangeLog regen
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 30 May 2013 22:04:24 +0000 (18:04 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 30 May 2013 22:04:24 +0000 (18:04 -0400)
Makefile.am

index 3f67639..dd1460c 100644 (file)
@@ -25,7 +25,8 @@ MAINTAINERCLEANFILES = \
 # ChangeLog generation
 #
 CHANGELOG_RANGE =
-ChangeLog:
+ChangeLog: $(srcdir)/ChangeLog
+$(srcdir)/ChangeLog:
        $(AM_V_GEN) if test -d "$(top_srcdir)/.git"; then \
          (GIT_DIR=$(top_srcdir)/.git $(top_srcdir)/missing --run \
           git log $(CHANGELOG_RANGE) --stat) | fmt --split-only > $@.tmp \
@@ -38,7 +39,7 @@ ChangeLog:
          (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
          echo A git checkout and git-log is required to generate this file >> "$(srcdir)/$@"); \
        fi
-.PHONY: $(srcdir)/ChangeLog
+.PHONY: ChangeLog $(srcdir)/ChangeLog
 
 
 #