diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2009-07-15 16:01:37 -0400 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-16 14:32:20 +1000 |
commit | 9fd00d01cacae9724649699bf8e0af1e16dbe356 (patch) | |
tree | 1aaa9a337770062d491946e5ab752386de4ffae4 | |
parent | df4745e5565b98cea278f33001f38a64e027e4ce (diff) |
Use XORG_CHANGELOG macro to create ChangeLog. #22611
Adding the macro in configure.ac and use it in Makefile.am
Refer to: https://bugs.freedesktop.org/show_bug.cgi?id=22611
Global maintenance on all modules
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index adb32f8..0642345 100644 --- a/Makefile.am +++ b/Makefile.am @@ -28,6 +28,6 @@ MAINTAINERCLEANFILES = ChangeLog .PHONY: ChangeLog ChangeLog: - (GIT_DIR=$(top_srcdir)/.git git log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2) + $(CHANGELOG_CMD) dist-hook: ChangeLog diff --git a/configure.ac b/configure.ac index 4b8291b..4f70f7c 100644 --- a/configure.ac +++ b/configure.ac @@ -30,6 +30,10 @@ AC_CONFIG_SRCDIR([Makefile.am]) AM_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR(.) +# Require xorg-macros: XORG_CHANGELOG +m4_ifndef([XORG_MACROS_VERSION], [AC_FATAL([must install xorg-macros 1.2 or later before running autoconf/autogen])]) +XORG_MACROS_VERSION(1.2) + AM_INIT_AUTOMAKE([dist-bzip2]) AM_MAINTAINER_MODE @@ -129,6 +133,7 @@ AC_SUBST([DRIVER_NAME]) XORG_MANPAGE_SECTIONS XORG_RELEASE_VERSION +XORG_CHANGELOG AC_OUTPUT([ Makefile |