Add the buildkernel and installkernel targets.
While here fix some minor style bugs (whitespacing) and move the make target from Makefile.upgrade to this file. Simplify the make target to make it readable.
This commit is contained in:
parent
b7db0275e2
commit
549f978ab6
26
Makefile
26
Makefile
@ -80,10 +80,10 @@
|
||||
# Define the user-driven targets. These are listed here in alphabetical
|
||||
# order, but that's not important.
|
||||
#
|
||||
TGTS = afterdistribute all buildworld checkdpadd clean cleandepend cleandir \
|
||||
depend distribute everything hierarchy includes install installmost \
|
||||
installworld lint maninstall mk most obj objlink regress rerelease \
|
||||
tags update
|
||||
TGTS= afterdistribute all buildkernel buildworld checkdpadd clean \
|
||||
cleandepend cleandir depend distribute everything hierarchy includes \
|
||||
install installkernel installmost installworld lint maninstall mk \
|
||||
most obj objlink regress rerelease tags update
|
||||
|
||||
PATH= /sbin:/bin:/usr/sbin:/usr/bin
|
||||
MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1
|
||||
@ -140,7 +140,10 @@ world: upgrade_checks
|
||||
# the system to current.
|
||||
#
|
||||
upgrade_checks:
|
||||
@cd ${.CURDIR}; if `make -m ${.CURDIR}/share/mk test > /dev/null 2>&1`; then ok=1; else ${MAKE} -f Makefile.upgrade make; fi;
|
||||
@cd ${.CURDIR}; \
|
||||
if ! make -m ${.CURDIR}/share/mk test > /dev/null 2>&1; then \
|
||||
make make; \
|
||||
fi
|
||||
|
||||
#
|
||||
# A simple test target used as part of the test to see if make supports
|
||||
@ -148,6 +151,19 @@ upgrade_checks :
|
||||
#
|
||||
test:
|
||||
|
||||
#
|
||||
# Upgrade the installed make to the current version using the installed
|
||||
# headers, libraries and build tools. This is required on installed versions
|
||||
# prior to 2.2.5 in which the installed make doesn't support the -m argument.
|
||||
#
|
||||
make:
|
||||
@echo
|
||||
@echo "--------------------------------------------------------------"
|
||||
@echo " Upgrading the installed make"
|
||||
@echo "--------------------------------------------------------------"
|
||||
@cd ${.CURDIR}/usr.bin/make; \
|
||||
make obj && make depend && make all && make install
|
||||
|
||||
#
|
||||
# Define the upgrade targets. These are listed here in alphabetical
|
||||
# order, but that's not important.
|
||||
|
Loading…
Reference in New Issue
Block a user