[Freeipa-devel] [PATCH] Make it possible to force the running of autogen

Karl MacMillan kmacmillan at redhat.com
Mon Nov 5 15:29:13 UTC 2007


# HG changeset patch
# User "Karl MacMillan <kmacmillan at redhat.com>"
# Date 1194280068 18000
# Node ID 48b7a619dec60bf2b72a34d7fdc2ab7adad7c01d
# Parent  ceff443d46a3b3f64e7cd9ca4ae72758cd581ccd
Make it possible to force the running of autogen.

With the change to run autogen on make all if there
was no makefile present, it became impossible to
force the running of autogen when that is needed. Fix
that by adding a bootstrap-autogen target that checks
the existing of Makefiles and reverting the autogen
target to always run autogen.

diff -r ceff443d46a3 -r 48b7a619dec6 Makefile
--- a/Makefile	Fri Nov 02 11:42:38 2007 -0400
+++ b/Makefile	Mon Nov 05 11:27:48 2007 -0500
@@ -35,14 +35,18 @@ CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-
 CLI_TARBALL_PREFIX=$(PRJ_PREFIX)-client-$(CLI_VERSION)
 CLI_TARBALL=$(CLI_TARBALL_PREFIX).tgz
 
-all: autogen
+all: bootstrap-autogen
 	@for subdir in $(SUBDIRS); do \
 		(cd $$subdir && $(MAKE) $@) || exit 1; \
 	done
 
-autogen:
+bootstrap-autogen:
 	cd ipa-server; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
 	cd ipa-client; if [ ! -e Makefile ]; then ./autogen.sh --prefix=/usr --sysconfdir=/etc; fi
+
+autogen:
+	cd ipa-server; ./autogen.sh --prefix=/usr --sysconfdir=/etc;
+	cd ipa-client; ./autogen.sh --prefix=/usr --sysconfdir=/etc;
 
 configure:
 	cd ipa-server; ./configure --prefix=/usr --sysconfdir=/etc




More information about the Freeipa-devel mailing list