diff options
Diffstat (limited to 'lib/libkrb5/Makefile.asn1.inc')
-rw-r--r-- | lib/libkrb5/Makefile.asn1.inc | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/lib/libkrb5/Makefile.asn1.inc b/lib/libkrb5/Makefile.asn1.inc index d7492c07289..c29be24daa7 100644 --- a/lib/libkrb5/Makefile.asn1.inc +++ b/lib/libkrb5/Makefile.asn1.inc @@ -1,12 +1,10 @@ -# $OpenBSD: Makefile.asn1.inc,v 1.2 2003/05/17 05:20:18 mho Exp $ +# $OpenBSD: Makefile.asn1.inc,v 1.3 2003/05/17 20:07:23 mho Exp $ .PATH: ${KRB5SRC}/lib/asn1 DIR_ASN1= ${KRB5SRC}/lib/asn1 HDR_ASN1= der.h #asn1-common.h -HDR_OBJ+= krb5_asn1.h asn1_err.h - -includes: krb5_asn1.h asn1_err.h +HDR_GEN+= krb5_asn1.h asn1_err.h .PATH: ${KRB5SRC}/lib/asn1 @@ -64,10 +62,7 @@ gen_files= \ asn1_TransitedEncoding.c \ asn1_UNSIGNED.c -CLEANFILES+= ${gen_files} asn1_err.[ch] asn1_files - -BUILT_SOURCES= \ - ${gen_files} \ +gen_files+=\ asn1_err.h \ asn1_err.c @@ -76,15 +71,13 @@ SRCS+= der_get.c \ der_free.c \ der_length.c \ der_copy.c \ - ${BUILT_SOURCES} + ${gen_files} CFLAGS+= -I${KRB5SRC}/lib/asn1 -asn1_err.h asn1_err.c: ${KRB5SRC}/lib/asn1/asn1_err.et - compile_et ${KRB5SRC}/lib/asn1/asn1_err.et - -$(gen_files): - asn1_compile ${KRB5SRC}/lib/asn1/k5.asn1 krb5_asn1 - for f in *.x; do mv $$f `echo $$f | sed s,.x$$,.c,g`; done - +regen_asn1: + cd ${GENDIR}; compile_et ${KRB5SRC}/lib/asn1/asn1_err.et + cd ${GENDIR}; asn1_compile ${KRB5SRC}/lib/asn1/k5.asn1 krb5_asn1; \ + for f in *.x; do mv $$f `echo $$f | sed s,.x$$,.c,g`; done +regen: regen_asn1 |