Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Add a "dependall" target, which does a "make depend...
details: https://anonhg.NetBSD.org/src/rev/badc87b596e2
branches: trunk
changeset: 476345:badc87b596e2
user: perry <perry%NetBSD.org@localhost>
date: Tue Sep 14 01:31:11 1999 +0000
description:
Add a "dependall" target, which does a "make depend" and then "make all"
in a single directory. This is useful in "make build" because by doing
the build immediately after the depend, all sources will typically
still be in the buffer cache, thus saving significant time over doing
a "make depend" on all the directories and then a "make all".
diffstat:
share/mk/Makefile | 13 ++++++++-----
share/mk/bsd.depall.mk | 5 +++++
share/mk/bsd.hostprog.mk | 3 ++-
share/mk/bsd.info.mk | 3 ++-
share/mk/bsd.kmod.mk | 3 ++-
share/mk/bsd.lib.mk | 3 ++-
share/mk/bsd.man.mk | 3 ++-
share/mk/bsd.own.mk | 12 ++++++------
share/mk/bsd.prog.mk | 3 ++-
9 files changed, 31 insertions(+), 17 deletions(-)
diffs (162 lines):
diff -r b3231db59304 -r badc87b596e2 share/mk/Makefile
--- a/share/mk/Makefile Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/Makefile Tue Sep 14 01:31:11 1999 +0000
@@ -1,13 +1,16 @@
-# $NetBSD: Makefile,v 1.26 1999/07/14 20:20:05 wrstuden Exp $
+# $NetBSD: Makefile,v 1.27 1999/09/14 01:31:11 perry Exp $
# @(#)Makefile 8.1 (Berkeley) 6/8/93
.include <bsd.own.mk>
.if ${MKSHARE} != "no"
-FILES= bsd.README bsd.crypto.mk bsd.doc.mk bsd.dep.mk bsd.files.mk \
- bsd.hostprog.mk bsd.inc.mk bsd.info.mk bsd.kinc.mk bsd.kmod.mk \
- bsd.lib.mk bsd.links.mk bsd.man.mk bsd.nls.mk bsd.obj.mk bsd.own.mk \
- bsd.prog.mk bsd.subdir.mk bsd.sys.mk sys.mk
+FILES= bsd.README bsd.crypto.mk bsd.doc.mk bsd.dep.mk \
+ bsd.depall.mk bsd.files.mk bsd.hostprog.mk \
+ bsd.inc.mk bsd.info.mk bsd.kinc.mk bsd.kmod.mk \
+ bsd.lib.mk bsd.links.mk bsd.man.mk bsd.nls.mk \
+ bsd.obj.mk bsd.own.mk bsd.prog.mk \
+ bsd.subdir.mk bsd.sys.mk sys.mk
+
FILESDIR=/usr/share/mk
.endif
MKOBJ= no
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.depall.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/mk/bsd.depall.mk Tue Sep 14 01:31:11 1999 +0000
@@ -0,0 +1,5 @@
+# $NetBSD: bsd.depall.mk,v 1.1 1999/09/14 01:31:11 perry Exp $
+
+dependall: depend
+ @cd ${.CURDIR}; \
+ ${MAKE} all
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.hostprog.mk
--- a/share/mk/bsd.hostprog.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.hostprog.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.hostprog.mk,v 1.1 1999/07/14 20:20:05 wrstuden Exp $
+# $NetBSD: bsd.hostprog.mk,v 1.2 1999/09/14 01:31:11 perry Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if !target(__initialized__)
@@ -8,6 +8,7 @@
.endif
.include <bsd.own.mk>
.include <bsd.obj.mk>
+.include <bsd.depall.mk>
.MAIN: all
.endif
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.info.mk
--- a/share/mk/bsd.info.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.info.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.info.mk,v 1.8 1999/04/22 01:06:42 billc Exp $
+# $NetBSD: bsd.info.mk,v 1.9 1999/09/14 01:31:11 perry Exp $
.if !target(__initialized__)
__initialized__:
@@ -7,6 +7,7 @@
.endif
.include <bsd.own.mk>
.include <bsd.obj.mk>
+.include <bsd.depall.mk>
.MAIN: all
.endif
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.kmod.mk
--- a/share/mk/bsd.kmod.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.kmod.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.kmod.mk,v 1.32 1999/09/04 21:48:33 fredb Exp $
+# $NetBSD: bsd.kmod.mk,v 1.33 1999/09/14 01:31:11 perry Exp $
.if !target(__initialized__)
__initialized__:
@@ -7,6 +7,7 @@
.endif
.include <bsd.own.mk>
.include <bsd.obj.mk>
+.include <bsd.depall.mk>
.MAIN: all
.endif
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.lib.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.lib.mk,v 1.158 1999/09/12 00:31:34 christos Exp $
+# $NetBSD: bsd.lib.mk,v 1.159 1999/09/14 01:31:11 perry Exp $
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
.if !target(__initialized__)
@@ -8,6 +8,7 @@
.endif
.include <bsd.own.mk>
.include <bsd.obj.mk>
+.include <bsd.depall.mk>
.MAIN: all
.endif
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.man.mk
--- a/share/mk/bsd.man.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.man.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.man.mk,v 1.48 1999/09/04 21:48:33 fredb Exp $
+# $NetBSD: bsd.man.mk,v 1.49 1999/09/14 01:31:11 perry Exp $
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
.if !target(__initialized__)
@@ -8,6 +8,7 @@
.endif
.include <bsd.own.mk>
.include <bsd.obj.mk>
+.include <bsd.depall.mk>
.MAIN: all
.endif
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.own.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.own.mk,v 1.127 1999/09/12 01:19:25 chs Exp $
+# $NetBSD: bsd.own.mk,v 1.128 1999/09/14 01:31:11 perry Exp $
.if !defined(_BSD_OWN_MK_)
_BSD_OWN_MK_=1
@@ -142,11 +142,11 @@
MACHINE_GNU_ARCH=${GNU_ARCH.${MACHINE_ARCH}}
.endif
-TARGETS+= all clean cleandir depend distclean includes install lint obj \
- regress tags
-.PHONY: all clean cleandir depend distclean includes install lint obj \
- regress tags beforedepend afterdepend beforeinstall \
- afterinstall realinstall
+TARGETS+= all clean cleandir depend dependall distclean includes \
+ install lint obj regress tags
+.PHONY: all clean cleandir depend dependall distclean includes \
+ install lint obj regress tags beforedepend afterdepend \
+ beforeinstall afterinstall realinstall
# set NEED_OWN_INSTALL_TARGET, if it's not already set, to yes
# this is used by bsd.pkg.mk to stop "install" being defined
diff -r b3231db59304 -r badc87b596e2 share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk Tue Sep 14 01:07:13 1999 +0000
+++ b/share/mk/bsd.prog.mk Tue Sep 14 01:31:11 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.prog.mk,v 1.103 1999/09/04 21:48:33 fredb Exp $
+# $NetBSD: bsd.prog.mk,v 1.104 1999/09/14 01:31:11 perry Exp $
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
.if !target(__initialized__)
@@ -8,6 +8,7 @@
.endif
.include <bsd.own.mk>
.include <bsd.obj.mk>
+.include <bsd.depall.mk>
.MAIN: all
.endif
Home |
Main Index |
Thread Index |
Old Index