add stuff to copy generated .h file to include dir
authorJohn Kohl <jtkohl@mit.edu>
Thu, 25 Oct 1990 13:22:21 +0000 (13:22 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Thu, 25 Oct 1990 13:22:21 +0000 (13:22 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1324 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/asn.1/Imakefile

index f1a285df5cfa05bb21932cbca9c5385a86cbf43c..41b391ba2d4fd97381d5c5738d9d0090663890aa 100644 (file)
@@ -10,6 +10,8 @@
 PepyPosyRules()
 NormalLibraryObjectRule()
 
+EHDRDIR=$(TOP)/include/krb5/asn.1
+
 SRCS= \
        $(TYPESSRCS)    \
        encode.c        \
@@ -128,6 +130,8 @@ OBJS= \
        tkt2ktkt.o      \
        u2gen.o
 
+all:: headers
+
 #if HavePerl
 #ifdef TypesObjs
 #include "KRB5-oflist"
@@ -163,9 +167,12 @@ KRB5-pt0.c KRB5-cflist KRB5-oflist:        KRB5-types.c process.perl
 #endif
 
 KRB5-types.c: KRB5-types.py
+KRB5-types.h: KRB5-types.c
 
 KRB5-types.py: KRB5-asn.py
        $(POSY) $(POFLAGS) -o $@ KRB5-asn.py
 
+CopyHeader(KRB5-types.h,$(EHDRDIR))
+
 clean::
        $(RM) KRB5-types.c KRB5.ph KRB5-types.py KRB5-types.h KRB5-pt*.c KRB5-oflist