X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=ab32f9967861de2e0b5bc6c7836f185f9dc7f0ce;hb=5ee84736663824fe12474b78dace867e42893a14;hp=9a242a31e3168fe058b600c1336b8bc28132ee9a;hpb=8cd2dcd874841a5a7a64a42f76ee9d1fae5718ad;p=pspp-builds.git diff --git a/Makefile.am b/Makefile.am index 9a242a31..ab32f996 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS = gnits 1.10 subdir-objects SUBDIRS = gl po -DISTCLEANFILES = ./po/stamp-po +DISTCLEANFILES = ./po/stamp-po xconfigure BUILT_SOURCES = AM_CPPFLAGS = -I$(top_srcdir)/gl -I$(top_builddir)/gl @@ -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)