Source-Changes-HG archive

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

[src/trunk]: src/share/mk bsd.dep.mk: revert 1.85 (for now)



details:   https://anonhg.NetBSD.org/src/rev/4f7d5651e89d
branches:  trunk
changeset: 934996:4f7d5651e89d
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Jun 22 01:04:26 2020 +0000

description:
bsd.dep.mk: revert 1.85 (for now)

Revert my recent 1.85 revision that fixed "make tags".  It causes too
much build breakage elsewhere in the tree that needs to be resolved first.

Issues include:
- Directories using TESTS_CXX with .cpp and .cxx extension instead of the
  default .cc extension (see bsd.prog.mk). Most of these have been fixed.
- external/gpl3/gcc build of .cc files. (No idea what's wrong there).

diffstat:

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

diffs (30 lines):

diff -r fc7ca505eb5a -r 4f7d5651e89d share/mk/bsd.dep.mk
--- a/share/mk/bsd.dep.mk       Sun Jun 21 23:53:59 2020 +0000
+++ b/share/mk/bsd.dep.mk       Mon Jun 22 01:04:26 2020 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.dep.mk,v 1.85 2020/06/21 03:39:21 lukem Exp $
+#      $NetBSD: bsd.dep.mk,v 1.86 2020/06/22 01:04:26 lukem Exp $
 
 ##### Basic targets
 realdepend:    beforedepend .depend afterdepend
@@ -94,16 +94,16 @@
 
 ##### Clean rules
 .if defined(SRCS) && !empty(SRCS)
-CLEANDIRFILES+= .depend ${__DPSRCS.d} ${__DPSRCS.d:.d=.d.tmp} tags ${CLEANDEPEND}
+CLEANDIRFILES+= .depend ${__DPSRCS.d} ${__DPSRCS.d:.d=.d.tmp} ${.CURDIR}/tags ${CLEANDEPEND}
 .endif
 
 ##### Custom rules
-.if !commands(tags)
+.if !target(tags)
 tags: ${SRCS}
 .if defined(SRCS) && !empty(SRCS)
        ${_MKTARGET_CREATE}
-       -cd "${.CURDIR}"; ctags -f /dev/stdout ${.ALLSRC:M*.[cly]} | \
-           ${TOOL_SED} "s;\${.CURDIR}/;;" > ${.OBJDIR}/tags
+       -cd "${.CURDIR}"; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
+           ${TOOL_SED} "s;\${.CURDIR}/;;" > tags
 .endif
 .endif
 



Home | Main Index | Thread Index | Old Index