Source-Changes-HG archive

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

[src/trunk]: src/share/mk Change some .if defined(SRCS) to .if defined(SRCS) ...



details:   https://anonhg.NetBSD.org/src/rev/4dd865605ff2
branches:  trunk
changeset: 782753:4dd865605ff2
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Nov 18 19:48:29 2012 +0000

description:
Change some .if defined(SRCS) to .if defined(SRCS) && !empty(SRCS)

diffstat:

 share/mk/bsd.dep.mk |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 1b4b015c82eb -r 4dd865605ff2 share/mk/bsd.dep.mk
--- a/share/mk/bsd.dep.mk       Sun Nov 18 19:29:40 2012 +0000
+++ b/share/mk/bsd.dep.mk       Sun Nov 18 19:48:29 2012 +0000
@@ -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 @@
 ##### 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 @@
            ${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



Home | Main Index | Thread Index | Old Index