From 9f34d7be4956d86f6a43385940a3b5f1e027e49b Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 8 Nov 2013 22:27:25 +0100 Subject: Silence autofoo warnings --- Makefile.am | 2 ++ configure.ac | 1 + 2 files changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 8980d63..93c8a92 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,6 +4,8 @@ SUBDIRS = pixmaps po src help man_MANS = mate-system-monitor.1 +ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} + EXTRA_DIST = \ $(man_MANS) \ mate-system-monitor.desktop.in \ diff --git a/configure.ac b/configure.ac index 07f7105..bfe864e 100644 --- a/configure.ac +++ b/configure.ac @@ -6,6 +6,7 @@ AC_INIT([mate-system-monitor], [1.6.1], [http://www.mate-desktop.org/]) AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_HEADERS(config.h) +AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([dist-xz]) AC_SUBST(ACLOCAL_AMFLAGS, [\${ACLOCAL_FLAGS}]) -- cgit v1.2.1 From 64f551f2ac731b5b863b2255076681847aabb3ce Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 8 Nov 2013 22:29:29 +0100 Subject: Only create a tar.xz file --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bfe864e..39fff86 100644 --- a/configure.ac +++ b/configure.ac @@ -8,7 +8,7 @@ AC_CONFIG_SRCDIR(configure.ac) AC_CONFIG_HEADERS(config.h) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([dist-xz]) +AM_INIT_AUTOMAKE([no-dist-gzip dist-xz]) AC_SUBST(ACLOCAL_AMFLAGS, [\${ACLOCAL_FLAGS}]) AM_PROG_LIBTOOL -- cgit v1.2.1 From 7784304322821afd5b40728c27f40b17fbb330cb Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 8 Nov 2013 22:36:10 +0100 Subject: Add dist-hook for Changelog creation --- Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile.am b/Makefile.am index 93c8a92..6084b1a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,3 +29,17 @@ DISTCLEANFILES = \ mate-system-monitor.desktop DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper + +dist-hook: + @if test -d "$(srcdir)/.git"; \ + then \ + echo Creating ChangeLog && \ + (GIT_DIR=$(top_srcdir)/.git \ + ./missing --run git log --stat -M -C --name-status --date=short --no-color) | \ + fmt --split-only > ChangeLog.tmp \ + && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ + || ( rm -f ChangeLog.tmp ; \ + echo Failed to generate ChangeLog >&2 ); \ + else \ + echo A git clone is required to generate a ChangeLog >&2; \ + fi -- cgit v1.2.1