clean up rules for Imakefile dependencies so that our generated
authorJohn Kohl <jtkohl@mit.edu>
Thu, 1 Nov 1990 17:32:35 +0000 (17:32 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 1 Nov 1990 17:32:35 +0000 (17:32 +0000)
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

index 865d474fb46bebc6c903f94cbcac7ce34aea7e40..40860259172bf775ba8d9ffbdf94b3590115bac3 100644 (file)
@@ -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 \                                    @@\