Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/heimdal Workaround around make bug by us...



details:   https://anonhg.NetBSD.org/src/rev/40fb07fb889a
branches:  trunk
changeset: 767681:40fb07fb889a
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jul 27 03:18:52 2011 +0000

description:
Workaround around make bug by using an intermediate file/rule.

diffstat:

 crypto/external/bsd/heimdal/Makefile.rules.inc |  31 ++++++++++++++-----------
 1 files changed, 17 insertions(+), 14 deletions(-)

diffs (66 lines):

diff -r ef814c36eb6e -r 40fb07fb889a crypto/external/bsd/heimdal/Makefile.rules.inc
--- a/crypto/external/bsd/heimdal/Makefile.rules.inc    Wed Jul 27 02:23:29 2011 +0000
+++ b/crypto/external/bsd/heimdal/Makefile.rules.inc    Wed Jul 27 03:18:52 2011 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.rules.inc,v 1.4 2011/05/15 15:10:12 tsutsui Exp $
+# $NetBSD: Makefile.rules.inc,v 1.5 2011/07/27 03:18:52 matt Exp $
 
 SRCS+= ${HEIMSRCS:N*.et:N*.in:N*.asn1}
 
@@ -27,40 +27,43 @@
        ${src:.asn1=_asn1.h}            \
        ${src:.asn1=_asn1.hx}           \
        ${src:.asn1=_asn1-priv.h}       \
-       ${src:.asn1=_asn1-priv.hx}
+       ${src:.asn1=_asn1-priv.hx}      \
+       ${src:.asn1=.ts}
 
 ASN1_INCS += ${src:.asn1=_asn1.h}
 
 DPSRCS +=      ${src:.asn1=_asn1.h} ${src:.asn1=_asn1-priv.h}
-DPSRCS +=      ${src:.asn1=_asn1.hx} ${src:.asn1=_asn1-priv.hx}
 OBJS +=                ${ASN1_FILES.${src}:.x=.o}
 
+${ASN1_FILES.${src}} ${src:.asn1=_asn1.h} ${src:.asn1=_asn1-priv.h}: \
+        ${src:.asn1=.ts}
+
 .if exists(${src:.asn1=.opt})
-${ASN1_FILES.${src}} ${src:.asn1=_asn1.hx} ${src:.asn1=_asn1-priv.hx}: ${src} \
-                                       ${src:.asn1=.opt} ${TOOL_ASN1_COMPILE}
+${src:.asn1=.ts}: ${src} ${src:.asn1=.opt} ${TOOL_ASN1_COMPILE}
+       @touch $@
        ${TOOL_ASN1_COMPILE}                    \
                ${ASN1_OPTS.${src}}             \
                --option-file=${.ALLSRC:[2]}    \
                ${.ALLSRC:[1]} ${src:.asn1=_asn1}
-
+       @${TOOL_SED} -E                                                 \
+           -e 's,#include <(.*)_asn1\.h>,#include <krb5/\1_asn1.h>,'   \
+           2> /dev/null < ${src:.asn1=_asn1.hx} > ${src:.asn1=_asn1.h}
+       @cmp -s ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h}    \
+           2> /dev/null ||                                             \
+           cp ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h}
 .else
-${ASN1_FILES.${src}} ${src:.asn1=_asn1.hx} ${src:.asn1=_asn1-priv.hx}: ${src} \
-                                                       ${TOOL_ASN1_COMPILE}
+${src:.asn1=.ts}: ${src} ${TOOL_ASN1_COMPILE}
+       @touch $@
        ${TOOL_ASN1_COMPILE}                    \
                ${ASN1_OPTS.${src}}             \
                ${.ALLSRC:[1]} ${src:.asn1=_asn1}
-
-.endif
-
-${src:.asn1=_asn1.h}: ${src:.asn1=_asn1.hx}
        @${TOOL_SED} -E                                                 \
            -e 's,#include <(.*)_asn1\.h>,#include <krb5/\1_asn1.h>,'   \
            2> /dev/null < ${src:.asn1=_asn1.hx} > ${src:.asn1=_asn1.h}
-
-${src:.asn1=_asn1-priv.h}: ${src:.asn1=_asn1-priv.hx}
        @cmp -s ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h}    \
            2> /dev/null ||                                             \
            cp ${src:.asn1=_asn1-priv.hx} ${src:.asn1=_asn1-priv.h}
+.endif
 
 .for x2c in ${ASN1_FILES.${src}}
 ${x2c:.x=.c}: ${x2c}



Home | Main Index | Thread Index | Old Index