Module Name: src
Committed By: apb
Date: Thu Apr 23 09:43:49 UTC 2009
Modified Files:
src: Makefile
Log Message:
Make clean_METALOG in distrib/sets early in the build, to ensure that
the METALOG does not grow without bounds on multiple MKUPDATE builds.
(Previously, sanitise_METALOG in distrib/sets/Makefile used to do
something like this near the end of a build.)
To generate a diff of this commit:
cvs rdiff -u -r1.269 -r1.270 src/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/Makefile
diff -u src/Makefile:1.269 src/Makefile:1.270
--- src/Makefile:1.269 Wed Apr 15 10:18:34 2009
+++ src/Makefile Thu Apr 23 09:43:49 2009
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.269 2009/04/15 10:18:34 tsutsui Exp $
+# $NetBSD: Makefile,v 1.270 2009/04/23 09:43:49 apb Exp $
#
# This is the top-level makefile for building NetBSD. For an outline of
@@ -219,6 +219,7 @@
.if ${MKOBJDIRS} != "no"
BUILDTARGETS+= obj
.endif
+BUILDTARGETS+= clean_METALOG
.if !defined(NODISTRIBDIRS)
BUILDTARGETS+= do-distrib-dirs
.endif
@@ -381,6 +382,12 @@
@echo '*** WARNING: NBUILDJOBS is obsolete; use -j directly instead!'
.endif
+# Delete or sanitise a leftover METALOG from a previous build.
+clean_METALOG: .PHONY .MAKE
+.if ${MKUPDATE} != "no"
+ ${MAKEDIRTARGET} distrib/sets clean_METALOG
+.endif
+
do-distrib-dirs: .PHONY .MAKE
.if !defined(DESTDIR) || ${DESTDIR} == ""
${MAKEDIRTARGET} etc distrib-dirs DESTDIR=/