diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-07-12 13:37:45 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2016-07-12 13:37:45 +0100 |
commit | 11b72839bf4b54140b14a563fd84dc6ae392d146 (patch) | |
tree | eaf49b4f64cbff2211ad82d819889803abc86977 | |
parent | 82ada9ae16df0a848eac741b2240df970e31c90e (diff) | |
download | libgdata-11b72839bf4b54140b14a563fd84dc6ae392d146.tar.gz |
build: Use AX_GENERATE_CHANGELOG to generate the changelog
This should fix building the ChangeLog when srcdir ≠ builddir.
https://bugzilla.gnome.org/show_bug.cgi?id=768278
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | Makefile.am | 20 | ||||
-rw-r--r-- | configure.ac | 1 |
3 files changed, 5 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 00000000..5b589b31 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,2 @@ +This is a placeholder ChangeLog; the real one is generated from `git log` at +dist time. diff --git a/Makefile.am b/Makefile.am index 71f2371e..e2ff4428 100644 --- a/Makefile.am +++ b/Makefile.am @@ -856,23 +856,7 @@ EXTRA_DIST += libgdata.pc.in \ gdata/gdata-version.h.in # ChangeLog -ChangeLog: $(srcdir)/ChangeLog -$(srcdir)/ChangeLog: - @echo Creating $@ - @if test -d "$(srcdir)/.git"; then \ - (GIT_DIR=$(top_srcdir)/.git ./build-aux/missing --run \ - git log --stat) | fmt --split-only > $@.tmp \ - && mv -f $@.tmp $@ \ - || ($(RM) $@.tmp; \ - echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \ - (test -f $@ || echo git-log is required to generate this file >> $@)); \ - else \ - test -f $@ || \ - (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 >> $@); \ - fi -.PHONY: $(srcdir)/ChangeLog - -MAINTAINERCLEANFILES += ChangeLog +@GENERATE_CHANGELOG_RULES@ +dist-hook: dist-ChangeLog -include $(top_srcdir)/git.mk diff --git a/configure.ac b/configure.ac index 7d642e17..546813da 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,7 @@ AC_PROG_CXX AM_PROG_CC_C_O LT_INIT([]) PKG_PROG_PKG_CONFIG +AX_GENERATE_CHANGELOG AC_PATH_PROG([GLIB_GENMARSHAL],[glib-genmarshal]) AC_PATH_PROG([GLIB_MKENUMS],[glib-mkenums]) |