Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Use modified mkdep(1) (not cat) to merge '*.d' into...
details: https://anonhg.NetBSD.org/src/rev/fa65df9a1b0e
branches: trunk
changeset: 555173:fa65df9a1b0e
user: dsl <dsl%NetBSD.org@localhost>
date: Mon Nov 10 18:21:55 2003 +0000
description:
Use modified mkdep(1) (not cat) to merge '*.d' into '.depend'.
Allows some of the postprocessing to be done there instead of a separate
sed script called from 'afterdepend'.
diffstat:
share/mk/bsd.dep.mk | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 997306e9992d -r fa65df9a1b0e share/mk/bsd.dep.mk
--- a/share/mk/bsd.dep.mk Mon Nov 10 17:57:43 2003 +0000
+++ b/share/mk/bsd.dep.mk Mon Nov 10 18:21:55 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.dep.mk,v 1.62 2003/10/28 01:25:33 mrg Exp $
+# $NetBSD: bsd.dep.mk,v 1.63 2003/11/10 18:21:55 dsl Exp $
##### Basic targets
.PHONY: cleandepend
@@ -9,7 +9,8 @@
beforedepend .depend afterdepend: # ensure existence
##### Default values
-MKDEP?= mkdep
+MKDEP?= mkdep
+MKDEP_SUFFIXES?= .o
##### Build rules
# some of the rules involve .h sources, so remove them from mkdep line
@@ -32,7 +33,7 @@
.depend: ${__DPSRCS.d}
${_MKTARGET_CREATE}
rm -f .depend
- cat ${__DPSRCS.d} /dev/null > .depend
+ ${MKDEP} -d -f ${.TARGET} -s ${MKDEP_SUFFIXES:Q} ${__DPSRCS.d}
.SUFFIXES: .d .s .S .c .C .cc .cpp .cxx .m
Home |
Main Index |
Thread Index |
Old Index