From 1183d29d87c5c7439cf2364b7d7324d4a13b6e35 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Mon, 18 Jan 2010 09:37:44 -0500 Subject: Add 'prerelease-srpms' target to Makefile This target is available only if building from a git checkout. It will automatically populate the PRERELEASE_VERSION in version.m4 with the current datestamp and git commit id for creating an SRPM. --- configure.ac | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d0785ad78..7f329676d 100644 --- a/configure.ac +++ b/configure.ac @@ -13,5 +13,7 @@ AC_CONFIG_SUBDIRS([replace common server sss_client]) AC_SUBST([PRERELEASE_VERSION], PRERELEASE_VERSION_NUMBER) +AM_CONDITIONAL([GIT_CHECKOUT], [git log -1 &>/dev/null]) + AC_CONFIG_FILES([Makefile contrib/sssd.spec]) AC_OUTPUT -- cgit