X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile.am;h=4fb848d2621ab33e748a4d5538f700736874eb0f;hb=92ddb7c2327432a5b7ca27557eb5727e46a7c9bd;hp=9a242a31e3168fe058b600c1336b8bc28132ee9a;hpb=8cd2dcd874841a5a7a64a42f76ee9d1fae5718ad;p=pspp-builds.git diff --git a/Makefile.am b/Makefile.am index 9a242a31..4fb848d2 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,14 +27,26 @@ 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 noinst_LIBRARIES= +noinst_LTLIBRARIES= 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 +59,9 @@ include $(top_srcdir)/tests/automake.mk if WITH_GUI_TOOLS include $(top_srcdir)/glade/automake.mk endif + +include $(top_srcdir)/perl-module/automake.mk + +PHONY += $(DIST_HOOKS) +dist-hook: $(DIST_HOOKS) +.PHONY: $(PHONY)