Install include files.
authorJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:24:38 +0000 (12:24 +0000)
committerJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:24:38 +0000 (12:24 +0000)
Add hack to work around problems with imake on some systems with
SYSV style C preprocessors.

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

src/lib/krb5/asn.1/Imakefile

index c361d5422e2f0c7423267b4e31f2b73139769290..fd25d30bf6c69474e922f88b431a9e68944f38c9 100644 (file)
@@ -154,7 +154,23 @@ CopyHeader(KRB5-types.h,$(EHDRDIR))
 CopyHeader(KRB5_defs.h,$(EHDRDIR))
 CopyHeader(KRB5_pre_defs.h,$(EHDRDIR))
 
+Krb5InstallHeaders(KRB5_defs.h KRB5_pre_defs.h KRB5-types.h, $(KRB5_INCDIR)/krb5/asn.1)
+
 clean::
        $(RM) KRB5.ph KRB5_defs.h KRB5_pre_defs.h KRB5-types.h KRB5_tables.c
 
 DependTarget()
+
+#define IHaveSpecialMakefileTarget
+
+Makefile:: Imakefile
+       $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -s Makefile.new
+       $(MAKE) -f Makefile.new noop
+       -@if [ -f Makefile ]; then \
+               echo "$(RM) Makefile.bak; $(MV) Makefile Makefile.bak";\
+               $(RM) Makefile.bak; $(MV) Makefile Makefile.bak;\
+       fi
+       sed 's/^@/      @/' Makefile.new > Makefile || $(MV) Makefile.new Makefile
+       -$(RM) Makefile.new
+
+noop::