From 75491f9283babe4d46042d3ca6a9b575b2d89028 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 1 Nov 1990 17:32:35 +0000 Subject: [PATCH] clean up rules for Imakefile dependencies so that our generated include files only get built once. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1393 dc483132-0cff-0310-8789-dd5450dbe970 --- src/config/Imake.rules | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/config/Imake.rules b/src/config/Imake.rules index 865d474fb..408602591 100644 --- a/src/config/Imake.rules +++ b/src/config/Imake.rules @@ -582,17 +582,18 @@ tags:: @@\ */ #ifndef ImakeDependency #ifdef UseImakeInstalled -#define ImakeDependency(target) /**/ +#define ImakeDependency(target) @@\ +target:: Imakefile #else #define ImakeDependency(target) @@\ -target:: $(IMAKE) @@\ - @@\ $(IMAKE): @@\ @(cd $(IMAKESRC); if [ -f Makefile ]; then \ @@\ echo "checking $@ in $(IMAKESRC) first..."; $(MAKE) all; else \ @@\ echo "bootstrapping $@ from Makefile.ini in $(IMAKESRC) first..."; \ @@\ $(MAKE) -f Makefile.ini BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \ @@\ - echo "okay, continuing in $(CURRENT_DIR)") + echo "okay, continuing in $(CURRENT_DIR)") @@\ + @@\ +target:: $(IMAKE) Imakefile #endif /* UseImakeInstalled */ #endif /* ImakeDependency */ @@ -605,8 +606,6 @@ $(IMAKE): @@\ #ifndef BuildMakefileTarget #define BuildMakefileTarget(imakefile,imakeflags) @@\ ImakeDependency(Makefile) @@\ - @@\ -Makefile:: @@\ $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) imakeflags -s Makefile.new @@\ $(MAKE) -f Makefile.new noop @@\ -@if [ -f Makefile ]; then \ @@\ -- 2.26.2