summaryrefslogtreecommitdiff
path: root/lib/libkrb5/Makefile.asn1.inc
diff options
context:
space:
mode:
authorMagnus Holmberg <mho@cvs.openbsd.org>2003-05-17 20:07:24 +0000
committerMagnus Holmberg <mho@cvs.openbsd.org>2003-05-17 20:07:24 +0000
commitc2c11fc2b84996f7a2242f8840166e6c500143aa (patch)
tree5608f7be323b5e5f8a3cce23d6731af2239d6081 /lib/libkrb5/Makefile.asn1.inc
parent632b2281a6d12af4b48f2cb22f312d9b2f8ba52c (diff)
Added regen target to pregenerate files to get rid of dependency on
up-to-date asn1_compile and compile_et. on hin@
Diffstat (limited to 'lib/libkrb5/Makefile.asn1.inc')
-rw-r--r--lib/libkrb5/Makefile.asn1.inc25
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