Module Name: src Committed By: apb Date: Sun Nov 18 19:48:29 UTC 2012
Modified Files: src/share/mk: bsd.dep.mk Log Message: Change some .if defined(SRCS) to .if defined(SRCS) && !empty(SRCS) To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/share/mk/bsd.dep.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/mk/bsd.dep.mk diff -u src/share/mk/bsd.dep.mk:1.74 src/share/mk/bsd.dep.mk:1.75 --- src/share/mk/bsd.dep.mk:1.74 Sun Feb 19 23:19:37 2012 +++ src/share/mk/bsd.dep.mk Sun Nov 18 19:48:29 2012 @@ -1,4 +1,4 @@ -# $NetBSD: bsd.dep.mk,v 1.74 2012/02/19 23:19:37 matt Exp $ +# $NetBSD: bsd.dep.mk,v 1.75 2012/11/18 19:48:29 apb Exp $ ##### Basic targets realdepend: beforedepend .depend afterdepend @@ -13,7 +13,7 @@ MKDEP_SUFFIXES?= .o ##### Build rules # some of the rules involve .h sources, so remove them from mkdep line -.if defined(SRCS) # { +.if defined(SRCS) && !empty(SRCS) __acpp_flags= ${_ASM_TRADITIONAL_CPP} .if defined(NODPSRCS) @@ -67,17 +67,17 @@ ${__DPSRCS.d}: ${__DPSRCS.notd} ${DPSRCS ${CXXFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \ ${CPPFLAGS} ${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} -.endif # defined(SRCS) # } +.endif # defined(SRCS) && !empty(SRCS) # } ##### Clean rules -.if defined(SRCS) +.if defined(SRCS) && !empty(SRCS) CLEANDIRFILES+= .depend ${__DPSRCS.d} ${.CURDIR}/tags ${CLEANDEPEND} .endif ##### Custom rules .if !target(tags) tags: ${SRCS} -.if defined(SRCS) +.if defined(SRCS) && !empty(SRCS) -cd "${.CURDIR}"; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \ ${TOOL_SED} "s;\${.CURDIR}/;;" > tags .endif