[PATCH:lndir 1/4] Move to xorg-macros 1.4 & use INSTALL_CMD to generate INSTALL file
Alan Coopersmith
alan.coopersmith at oracle.com
Fri Apr 16 01:29:31 PDT 2010
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
Makefile.am | 12 +++++++-----
configure.ac | 12 ++++++------
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index babca5f..6148221 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -48,12 +48,14 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man
EXTRA_DIST = $(appman_PRE)
-EXTRA_DIST += ChangeLog
-MAINTAINERCLEANFILES = ChangeLog
+MAINTAINERCLEANFILES = ChangeLog INSTALL
-.PHONY: ChangeLog
+.PHONY: ChangeLog INSTALL
+
+INSTALL:
+ $(INSTALL_CMD)
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
+dist-hook: ChangeLog INSTALL
diff --git a/configure.ac b/configure.ac
index db3eeb2..1cfb14b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,17 +26,17 @@ AC_INIT(lndir, [1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_MAINTAINER_MODE
+# Require xorg-macros 1.4 or later: XORG_DEFAULT_OPTIONS, INSTALL_CMD
+m4_ifndef([XORG_MACROS_VERSION],
+ [m4_fatal([must install xorg-macros 1.4 or later before running autoconf/autogen])])
+XORG_MACROS_VERSION(1.4)
+XORG_DEFAULT_OPTIONS
+
AM_CONFIG_HEADER(config.h)
AC_PROG_INSTALL
AC_PROG_CC
-# Require xorg-macros 1.3 or later: XORG_DEFAULT_OPTIONS
-m4_ifndef([XORG_MACROS_VERSION],
- [m4_fatal([must install xorg-macros 1.3 or later before running autoconf/autogen])])
-XORG_MACROS_VERSION(1.3)
-XORG_DEFAULT_OPTIONS
-
# Checks for pkg-config packages
PKG_CHECK_MODULES(XPROTO, xproto)
AC_SUBST(XPROTO_CFLAGS)
--
1.5.6.5
More information about the xorg-devel
mailing list