WITH_META_MODE: Don't expect meta files for side-effect generated files.

The first file in these lists will generate everything else so only
it should be getting a .meta file.  With bmake's missing=yes meta
feature these would otherwise cause a rebuild without the
.NOMETA hint.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-06-03 19:25:41 +00:00
parent 5852ae2d99
commit 92edc96667
10 changed files with 25 additions and 0 deletions

View File

@ -39,6 +39,7 @@ CLEANFILES+= ${GENSRCS} ${GENHDRS}
build-tools: mknodes mksyntax build-tools: mknodes mksyntax
.ORDER: builtins.c builtins.h .ORDER: builtins.c builtins.h
builtins.h: .NOMETA
builtins.c builtins.h: mkbuiltins builtins.def builtins.c builtins.h: mkbuiltins builtins.def
sh ${.CURDIR}/mkbuiltins ${.CURDIR} sh ${.CURDIR}/mkbuiltins ${.CURDIR}
@ -51,10 +52,12 @@ mknodes: mknodes.o ${BUILD_TOOLS_META}
mksyntax: mksyntax.o ${BUILD_TOOLS_META} mksyntax: mksyntax.o ${BUILD_TOOLS_META}
.ORDER: nodes.c nodes.h .ORDER: nodes.c nodes.h
nodes.h: .NOMETA
nodes.c nodes.h: mknodes nodetypes nodes.c.pat nodes.c nodes.h: mknodes nodetypes nodes.c.pat
${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat ${BTOOLSPATH:U.}/mknodes ${.CURDIR}/nodetypes ${.CURDIR}/nodes.c.pat
.ORDER: syntax.c syntax.h .ORDER: syntax.c syntax.h
syntax.h: .NOMETA
syntax.c syntax.h: mksyntax syntax.c syntax.h: mksyntax
${BTOOLSPATH:U.}/mksyntax ${BTOOLSPATH:U.}/mksyntax

View File

@ -35,6 +35,7 @@ ETSRCS= \
.for _ET in ${ET:T:R} .for _ET in ${ET:T:R}
.if ${SRCS:M${_ET}.[ch]} != "" .if ${SRCS:M${_ET}.[ch]} != ""
.ORDER: ${_ET}.h ${_ET}.c .ORDER: ${_ET}.h ${_ET}.c
${_ET}.c: .NOMETA
${_ET}.c ${_ET}.h: ${ET} ${_ET}.c ${_ET}.h: ${ET}
compile_et ${.ALLSRC} compile_et ${.ALLSRC}
CLEANFILES+= ${_ET}.h ${_ET}.c CLEANFILES+= ${_ET}.h ${_ET}.c

View File

@ -56,11 +56,13 @@ INCS+= krb5_asn1.h \
kx509_asn1.h kx509_asn1.h
.ORDER: ${GEN_CMS} .ORDER: ${GEN_CMS}
${GEN_CMS:[2..-1]}: .NOMETA
${GEN_CMS}: cms.asn1 cms.opt ${GEN_CMS}: cms.asn1 cms.opt
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
--option-file=${.ALLSRC:M*.opt} ${.ALLSRC:M*.asn1} cms_asn1 --option-file=${.ALLSRC:M*.opt} ${.ALLSRC:M*.asn1} cms_asn1
.ORDER: ${GEN_RFC2459} .ORDER: ${GEN_RFC2459}
${GEN_RFC2459:[2..-1]}: .NOMETA
${GEN_RFC2459}: rfc2459.asn1 ${GEN_RFC2459}: rfc2459.asn1
${ASN1_COMPILE} \ ${ASN1_COMPILE} \
--one-code-file \ --one-code-file \
@ -72,6 +74,7 @@ ${GEN_RFC2459}: rfc2459.asn1
--sequence=CRLDistributionPoints ${.ALLSRC:M*.asn1} rfc2459_asn1 --sequence=CRLDistributionPoints ${.ALLSRC:M*.asn1} rfc2459_asn1
.ORDER: ${GEN_K5} .ORDER: ${GEN_K5}
${GEN_K5:[2..-1]}: .NOMETA
${GEN_K5}: krb5.asn1 krb5.opt ${GEN_K5}: krb5.asn1 krb5.opt
${ASN1_COMPILE} \ ${ASN1_COMPILE} \
--one-code-file \ --one-code-file \
@ -79,31 +82,37 @@ ${GEN_K5}: krb5.asn1 krb5.opt
${.ALLSRC:M*.asn1} krb5_asn1 ${.ALLSRC:M*.asn1} krb5_asn1
.ORDER: ${GEN_PKINIT} .ORDER: ${GEN_PKINIT}
${GEN_PKINIT:[2..-1]}: .NOMETA
${GEN_PKINIT}: pkinit.asn1 ${GEN_PKINIT}: pkinit.asn1
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
${.ALLSRC:M*.asn1} pkinit_asn1 ${.ALLSRC:M*.asn1} pkinit_asn1
.ORDER: ${GEN_PKCS8} .ORDER: ${GEN_PKCS8}
${GEN_PKCS8:[2..-1]}: .NOMETA
${GEN_PKCS8}: pkcs8.asn1 ${GEN_PKCS8}: pkcs8.asn1
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
${.ALLSRC:M*.asn1} pkcs8_asn1 ${.ALLSRC:M*.asn1} pkcs8_asn1
.ORDER: ${GEN_PKCS9} .ORDER: ${GEN_PKCS9}
${GEN_PKCS9:[2..-1]}: .NOMETA
${GEN_PKCS9}: pkcs9.asn1 ${GEN_PKCS9}: pkcs9.asn1
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
${.ALLSRC:M*.asn1} pkcs9_asn1 ${.ALLSRC:M*.asn1} pkcs9_asn1
.ORDER: ${GEN_PKCS12} .ORDER: ${GEN_PKCS12}
${GEN_PKCS12:[2..-1]}: .NOMETA
${GEN_PKCS12}: pkcs12.asn1 ${GEN_PKCS12}: pkcs12.asn1
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
${.ALLSRC:M*.asn1} pkcs12_asn1 ${.ALLSRC:M*.asn1} pkcs12_asn1
.ORDER: ${GEN_DIGEST} .ORDER: ${GEN_DIGEST}
${GEN_DIGEST:[2..-1]}: .NOMETA
${GEN_DIGEST}: digest.asn1 ${GEN_DIGEST}: digest.asn1
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
${.ALLSRC:M*.asn1} digest_asn1 ${.ALLSRC:M*.asn1} digest_asn1
.ORDER: ${GEN_KX509} .ORDER: ${GEN_KX509}
${GEN_KX509:[2..-1]}: .NOMETA
${GEN_KX509}: kx509.asn1 ${GEN_KX509}: kx509.asn1
${ASN1_COMPILE} --one-code-file \ ${ASN1_COMPILE} --one-code-file \
${.ALLSRC:M*.asn1} kx509_asn1 ${.ALLSRC:M*.asn1} kx509_asn1

View File

@ -38,6 +38,7 @@ CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} \
spnego_asn1_files spnego_asn1-template.c spnego_asn1_files spnego_asn1-template.c
.ORDER: ${GEN} .ORDER: ${GEN}
${GEN:[2..-1]}: .NOMETA
${GEN}: spnego.asn1 spnego.opt ${GEN}: spnego.asn1 spnego.opt
${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
${.ALLSRC:M*.asn1} spnego_asn1 ${.ALLSRC:M*.asn1} spnego_asn1

View File

@ -86,6 +86,7 @@ CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} hdb_asn1_files \
hdb_asn1-template.[ch]* hdb_asn1-template.[ch]*
.ORDER: ${GEN} .ORDER: ${GEN}
${GEN:[2..-1]}: .NOMETA
${GEN}: hdb.asn1 ${GEN}: hdb.asn1
${ASN1_COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1 ${ASN1_COMPILE} ${.ALLSRC:M*.asn1} hdb_asn1

View File

@ -269,16 +269,19 @@ CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} ocsp_asn1_files \
INCS+= ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h INCS+= ocsp_asn1.h pkcs10_asn1.h crmf_asn1.h
.ORDER: ${GEN_OCSP} .ORDER: ${GEN_OCSP}
${GEN_OCSP:[2..-1]}: .NOMETA
${GEN_OCSP}: ocsp.asn1 ocsp.opt ${GEN_OCSP}: ocsp.asn1 ocsp.opt
${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
${.ALLSRC:M*.asn1} ocsp_asn1 ${.ALLSRC:M*.asn1} ocsp_asn1
.ORDER: ${GEN_PKCS10} .ORDER: ${GEN_PKCS10}
${GEN_PKCS10:[2..-1]}: .NOMETA
${GEN_PKCS10}: pkcs10.asn1 pkcs10.opt ${GEN_PKCS10}: pkcs10.asn1 pkcs10.opt
${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \ ${ASN1_COMPILE} --option-file=${.ALLSRC:M*.opt} \
${.ALLSRC:M*.asn1} pkcs10_asn1 ${.ALLSRC:M*.asn1} pkcs10_asn1
.ORDER: ${GEN_CRMF} .ORDER: ${GEN_CRMF}
${GEN_CRMF:[2..-1]}: .NOMETA
${GEN_CRMF}: crmf.asn1 ${GEN_CRMF}: crmf.asn1
${ASN1_COMPILE} ${.ALLSRC:M*.asn1} crmf_asn1 ${ASN1_COMPILE} ${.ALLSRC:M*.asn1} crmf_asn1

View File

@ -107,6 +107,7 @@ SRCS:= ${SRCS:S/${_YSRC}/${_YC}/}
CLEANFILES+= ${_YC} CLEANFILES+= ${_YC}
.if !empty(YFLAGS:M-d) && !empty(SRCS:My.tab.h) .if !empty(YFLAGS:M-d) && !empty(SRCS:My.tab.h)
.ORDER: ${_YC} y.tab.h .ORDER: ${_YC} y.tab.h
y.tab.h: .NOMETA
${_YC} y.tab.h: ${_YSRC} ${_YC} y.tab.h: ${_YSRC}
${YACC} ${YFLAGS} ${.ALLSRC} ${YACC} ${YFLAGS} ${.ALLSRC}
cp y.tab.c ${_YC} cp y.tab.c ${_YC}
@ -114,6 +115,7 @@ CLEANFILES+= y.tab.c y.tab.h
.elif !empty(YFLAGS:M-d) .elif !empty(YFLAGS:M-d)
.for _YH in ${_YC:R}.h .for _YH in ${_YC:R}.h
.ORDER: ${_YC} ${_YH} .ORDER: ${_YC} ${_YH}
${_YH}: .NOMETA
${_YC} ${_YH}: ${_YSRC} ${_YC} ${_YH}: ${_YSRC}
${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC} ${YACC} ${YFLAGS} -o ${_YC} ${.ALLSRC}
SRCS+= ${_YH} SRCS+= ${_YH}

View File

@ -11,6 +11,7 @@ ${MOD}_oid.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${EXTRAMIBSYMS}
cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET} cat ${.ALLSRC} | gensnmptree -e ${XSYM} > ${.TARGET}
.ORDER: ${MOD}_tree.c ${MOD}_tree.h .ORDER: ${MOD}_tree.c ${MOD}_tree.h
${MOD}_tree.h: .NOMETA
${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS} ${MOD}_tree.c ${MOD}_tree.h: ${MOD}_tree.def ${EXTRAMIBDEFS}
cat ${.ALLSRC} | gensnmptree -p ${MOD}_ cat ${.ALLSRC} | gensnmptree -p ${MOD}_

View File

@ -97,6 +97,7 @@ aslcompiler.y: ${PARSER}
${ACPICA_DIR}/compiler/aslparser.y > ${.TARGET} ${ACPICA_DIR}/compiler/aslparser.y > ${.TARGET}
.ORDER: aslcompilerparse.c aslcompilerparse.h .ORDER: aslcompilerparse.c aslcompilerparse.h
aslcompilerparse.h: .NOMETA
aslcompilerparse.c aslcompilerparse.h: aslcompiler.y aslcompilerparse.c aslcompilerparse.h: aslcompiler.y
${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC} ${YACC} ${YFLAGS} -pAslCompiler -oaslcompilerparse.c ${.ALLSRC}
@ -107,6 +108,7 @@ dtparserlex.c: dtparser.l
${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC} ${LEX} ${LFLAGS} -PDtParser -o${.TARGET} ${.ALLSRC}
.ORDER: dtparserparse.c dtparserparse.h .ORDER: dtparserparse.c dtparserparse.h
dtparserparse.h: .NOMETA
dtparserparse.c dtparserparse.h: dtparser.y dtparserparse.c dtparserparse.h: dtparser.y
${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC} ${YACC} ${YFLAGS} -pDtParser -odtparserparse.c ${.ALLSRC}
@ -117,6 +119,7 @@ prparserlex.c: prparser.l
${LEX} ${LFLAGS} -PPrParser -o${.TARGET} ${.ALLSRC} ${LEX} ${LFLAGS} -PPrParser -o${.TARGET} ${.ALLSRC}
.ORDER: prparserparse.c prparserparse.h .ORDER: prparserparse.c prparserparse.h
prparserparse.h: .NOMETA
prparserparse.c prparserparse.h: prparser.y prparserparse.c prparserparse.h: prparser.y
${YACC} ${YFLAGS} -pPrParser -oprparserparse.c ${.ALLSRC} ${YACC} ${YFLAGS} -pPrParser -oprparserparse.c ${.ALLSRC}

View File

@ -40,6 +40,7 @@ oid.h: tree.def Makefile
gensnmptree -e ${XSYM} < ${.ALLSRC:M*.def} > ${.TARGET} gensnmptree -e ${XSYM} < ${.ALLSRC:M*.def} > ${.TARGET}
.ORDER: tree.c tree.h .ORDER: tree.c tree.h
tree.h: .NOMETA
tree.c tree.h: tree.def tree.c tree.h: tree.def
gensnmptree -l < ${.ALLSRC} gensnmptree -l < ${.ALLSRC}