Make sure DESTDIR is always set when calling the distrib-dirs target.

In the new build world order, DESTDIR is set to "" (in Makefile.tools)
if not already set, to ensure correct include/library handling.  This
caused the top-level to not set DESTDIR=/, which confused distrib-dirs,
since it doesn't include Makefile.tools, and thus didn't see the same
DESTDIR that the top-level did.
This commit is contained in:
thorpej 2001-08-17 15:05:50 +00:00
parent f05a7e7c12
commit 6404ba3e23
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.127 2001/08/14 14:04:35 tv Exp $
# $NetBSD: Makefile,v 1.128 2001/08/17 15:05:50 thorpej Exp $
# This is the top-level makefile for building NetBSD. For an outline of
# how to build a snapshot or release, as well as other release engineering
@ -126,7 +126,7 @@ beforeinstall:
(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=/ distrib-dirs)
.endif
.else
(cd ${.CURDIR}/etc && ${MAKE} distrib-dirs)
(cd ${.CURDIR}/etc && ${MAKE} DESTDIR=${DESTDIR} distrib-dirs)
.endif
.endif