X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;fp=Makefile.am;h=ab32f9967861de2e0b5bc6c7836f185f9dc7f0ce;hb=7d3713dd11dc0f4c5ce9c62ea512cdea38b4e80d;hp=806fc2a9768ae596613e1afebcdf2ec951e0bebb;hpb=aab828a13b340ac7f3302e3a009274ed49d43ef1;p=pspp-builds.git diff --git a/Makefile.am b/Makefile.am index 806fc2a9..ab32f996 100644 --- a/Makefile.am +++ b/Makefile.am @@ -27,7 +27,7 @@ all_q_sources = pkgsysconfdir = $(sysconfdir)/@PACKAGE@ -EXTRA_DIST = ONEWS config.rpath pspp-mode.el +EXTRA_DIST = OChangeLog ONEWS config.rpath pspp-mode.el CLEANFILES = ACLOCAL_AMFLAGS = -I m4 -I gl/m4 @@ -35,6 +35,17 @@ noinst_LIBRARIES= noinst_PROGRAMS= check_PROGRAMS= bin_PROGRAMS= +DIST_HOOKS = +PHONY = + +DIST_HOOKS += generate-changelog +generate-changelog: + if test -d $(top_srcdir)/.git; then \ + $(top_srcdir)/gitlog-to-changelog --since=2008-07-27 \ + > $(distdir)/cl-t; \ + rm -f $(distdir)/ChangeLog; \ + mv $(distdir)/cl-t $(distdir)/ChangeLog; \ + fi include $(top_srcdir)/lib/automake.mk include $(top_srcdir)/doc/automake.mk @@ -47,3 +58,7 @@ include $(top_srcdir)/tests/automake.mk if WITH_GUI_TOOLS include $(top_srcdir)/glade/automake.mk endif + +PHONY += $(DIST_HOOKS) +dist-hook: $(DIST_HOOKS) +.PHONY: $(PHONY)