Modify "release" to invoke "make distribution" instead of "make build",

so that the "obsolete file removal" functionality of "distribution" is used.
Fixes build problems numerous people have experienced with MKUPDATE=yes
and the "release" target.
This commit is contained in:
lukem 2005-08-25 02:04:39 +00:00
parent fcf2b555d7
commit c9ae22c9c0
1 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.239 2005/04/17 15:18:34 lukem Exp $
# $NetBSD: Makefile,v 1.240 2005/08/25 02:04:39 lukem Exp $
#
# This is the top-level makefile for building NetBSD. For an outline of
@ -50,7 +50,7 @@
# defaults to the root directory). Ensures that INSTALLWORLDDIR
# is the not root directory if cross compiling.
# release:
# Does a `make build', and then tars up the DESTDIR files
# Does a `make distribution', and then tars up the DESTDIR files
# into RELEASEDIR/${MACHINE}, in release(7) format.
# (See etc/Makefile for more information on this.)
# regression-tests:
@ -292,14 +292,14 @@ ${tgt}: .PHONY
.endfor
#
# Build a release or snapshot (implies "make build"). Note that
# Build a release or snapshot (implies "make distribution"). Note that
# in this case, the set lists will be checked before the tar files
# are made.
#
release snapshot: .PHONY
${MAKEDIRTARGET} . build NOPOSTINSTALL=1
${MAKEDIRTARGET} etc release INSTALL_DONE=1
${MAKEDIRTARGET} . distribution
${MAKEDIRTARGET} etc release DISTRIBUTION_DONE=1
@echo "make ${.TARGET} started at: ${START_TIME}"
@printf "make ${.TARGET} finished at: " && date