Support for alternate source directory.
authorJohn Carr <jfc@mit.edu>
Wed, 25 Mar 1992 15:03:15 +0000 (15:03 +0000)
committerJohn Carr <jfc@mit.edu>
Wed, 25 Mar 1992 15:03:15 +0000 (15:03 +0000)
Make sed hack conditional.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2267 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/Imakefile

index fd25d30bf6c69474e922f88b431a9e68944f38c9..4ea28ede3b722588107a4c54063643b99b29076b 100644 (file)
@@ -159,12 +159,16 @@ Krb5InstallHeaders(KRB5_defs.h KRB5_pre_defs.h KRB5-types.h, $(KRB5_INCDIR)/krb5
 clean::
        $(RM) KRB5.ph KRB5_defs.h KRB5_pre_defs.h KRB5-types.h KRB5_tables.c
 
+SpecialObjectRule(KRB5_tables.o,KRB5_tables.c,)
+
 DependTarget()
 
+#ifdef UseSedHack
+
 #define IHaveSpecialMakefileTarget
 
 Makefile:: Imakefile
-       $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -s Makefile.new
+       $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) $(SRCSUBDIR)Imakefile -s Makefile.new
        $(MAKE) -f Makefile.new noop
        -@if [ -f Makefile ]; then \
                echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak";\
@@ -173,4 +177,6 @@ Makefile:: Imakefile
        sed 's/^@/      @/' Makefile.new > Makefile || $(MV) Makefile.new Makefile
        -$(RM) Makefile.new
 
+#endif
+
 noop::