Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libasn1 clean up depends a little, add stuff to force co...



details:   https://anonhg.NetBSD.org/src/rev/53e9ce6d7127
branches:  trunk
changeset: 499153:53e9ce6d7127
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Mon Nov 13 15:08:16 2000 +0000

description:
clean up depends a little, add stuff to force compilation of
asn1_compile as needed, the SUBDIR stuff is no longer used
this is primarily to avoid parsing k5.asn1 on every visit here

diffstat:

 lib/libasn1/Makefile |  27 ++++++++++++---------------
 1 files changed, 12 insertions(+), 15 deletions(-)

diffs (66 lines):

diff -r 2d9c53581f29 -r 53e9ce6d7127 lib/libasn1/Makefile
--- a/lib/libasn1/Makefile      Mon Nov 13 15:05:30 2000 +0000
+++ b/lib/libasn1/Makefile      Mon Nov 13 15:08:16 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2000/08/30 23:51:52 jhawk Exp $
+# $NetBSD: Makefile,v 1.5 2000/11/13 15:08:16 jdolecek Exp $
 DIST=          ${.CURDIR}/../../crypto/dist
 .PATH: ${DIST}/heimdal/lib/asn1
 
@@ -12,14 +12,14 @@
 asn1_err.h asn1_err.c: asn1_err.et
        ${COMPILEET}/compile_et ${DIST}/heimdal/lib/asn1/asn1_err.et
 
-DPSRCS=        asn1_err.h
+DPSRCS=        asn1_err.h asn1.h
 
 INCS=  asn1.h asn1_err.h
 
 INCSDIR= /usr/include/krb5
 
 BUILT_SOURCES =                        \
-       $(gen_files:.x=.c)      \
+       ${gen_files:.x=.c}      \
        asn1_err.h              \
        asn1_err.c
 
@@ -80,7 +80,7 @@
        der_length.c \
        der_copy.c \
        timegm.c \
-       $(BUILT_SOURCES)
+       ${BUILT_SOURCES}
 
 CPPFLAGS+= -I.                                 \
         -I${DIST}/heimdal/lib/asn1             \
@@ -90,22 +90,19 @@
         -I${DIST}/heimdal/lib/com_err          \
         -DHAVE_CONFIG_H
 
-$(gen_files) asn1.hx: asn1_files
+ASN1COMPILE!=  cd ${.CURDIR}/asn1_compile && ${MAKE} print-objdir
+ASN1_COMPILE=  ${ASN1COMPILE}/asn1_compile
 
-ASN1COMPILE!=  cd ${.CURDIR}/asn1_compile && ${MAKE} print-objdir
-
-asn1_files: k5.asn1 all-asn1_compile
-       ${ASN1COMPILE}/asn1_compile ${DIST}/heimdal/lib/asn1/k5.asn1
+${gen_files} asn1.hx: k5.asn1 ${ASN1_COMPILE}
+       ${ASN1_COMPILE} ${DIST}/heimdal/lib/asn1/k5.asn1
 
-asn1.h:        asn1.hx
-${SRCS}: asn1.h
+.PHONY: ${ASN1_COMPILE}
+${ASN1_COMPILE}:
+       @cd ${.CURDIR}/asn1_compile && ${MAKE}
 
-CLEANFILES = $(BUILT_SOURCES) $(gen_files) asn1_files asn1.h asn1.hx
-
-SUBDIR=        asn1_compile
+CLEANFILES = ${BUILT_SOURCES} ${gen_files} asn1_files asn1.h asn1.hx
 
 .include <bsd.lib.mk>
-.include <bsd.subdir.mk>
 
 .SUFFIXES: .hx .x
 



Home | Main Index | Thread Index | Old Index