Use `mk' files in share/mk (relative to the top level of the source

tree) instead of the system default ones in /usr/share/mk.  This
only works for makes run from the top level, and a few not too out
of date system makefiles must be present to start up.  Bootstraps
from can still be done from scratch by giving the path to an up to
date share/mk on the command line.

Removed bootstrap `mk' target and use of it.  The bootstrap didn't
actually work for the non-null DESTDIR case.
This commit is contained in:
Bruce Evans 1997-05-10 06:53:40 +00:00
parent f2cc6198fc
commit b02cab92aa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25647

View file

@ -1,5 +1,5 @@
#
# $Id: Makefile,v 1.122 1997/04/30 16:02:03 bde Exp $
# $Id: Makefile,v 1.123 1997/05/03 02:51:58 jb Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include
@ -33,6 +33,7 @@
# /usr/share/mk. These include:
# obj depend all install clean cleandepend cleanobj
.MAKEFLAGS:= ${.MAKEFLAGS} -m ${.CURDIR}/share/mk
# Put initial settings here.
SUBDIR=
@ -155,11 +156,6 @@ world:
cd ${.CURDIR} && ${MAKE} hierarchy
@echo
@echo "--------------------------------------------------------------"
@echo " Rebuilding /usr/share/mk"
@echo "--------------------------------------------------------------"
cd ${.CURDIR} && ${MAKE} mk
@echo
@echo "--------------------------------------------------------------"
@echo " Cleaning up the source tree"
@echo "--------------------------------------------------------------"
.if defined(NOCLEAN)
@ -250,11 +246,6 @@ reinstall:
cd ${.CURDIR} && ${MAKE} hierarchy
@echo
@echo "--------------------------------------------------------------"
@echo " Rebuilding /usr/share/mk"
@echo "--------------------------------------------------------------"
cd ${.CURDIR} && ${MAKE} mk
@echo
@echo "--------------------------------------------------------------"
@echo " Installing everything.."
@echo "--------------------------------------------------------------"
cd ${.CURDIR} && ${MAKE} install
@ -358,12 +349,6 @@ installmost:
hierarchy:
cd ${.CURDIR}/etc && ${MAKE} distrib-dirs
#
# mk - update the /usr/share/mk makefiles.
#
mk:
cd ${.CURDIR}/share/mk && ${MAKE} install
#
# bootstrap - [re]build tools needed to run the actual build, this includes
# tools needed by 'make depend', as some tools are needed to generate source