summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2000-01-09 18:17:48 +0000
committermarcel <marcel@FreeBSD.org>2000-01-09 18:17:48 +0000
commit7db2a1ade5cd3959a2fb9d19a12f9791a6a31b66 (patch)
tree774e96ada0334106cadeb8a5b1d0edf4b5459726 /Makefile
parentc63f2fbf0f73b92a89f1cb979f4fbd0c0a33f3d7 (diff)
downloadFreeBSD-src-7db2a1ade5cd3959a2fb9d19a12f9791a6a31b66.zip
FreeBSD-src-7db2a1ade5cd3959a2fb9d19a12f9791a6a31b66.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 25 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a04958b..e3fe5c2 100644
--- a/Makefile
+++ b/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
@@ -91,7 +91,7 @@ MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1
#
# Handle the user-driven targets, using the source relative mk files.
#
-${TGTS} : upgrade_checks
+${TGTS}: upgrade_checks
@cd ${.CURDIR}; \
${MAKE} ${.TARGET}
@@ -139,20 +139,36 @@ world: upgrade_checks
# so the normal make world is capable of doing what is required to update
# 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;
+upgrade_checks:
+ @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
# the -m argument.
#
-test :
+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.
#
-UPGRADE = aout-to-elf aout-to-elf-build aout-to-elf-install \
+UPGRADE= aout-to-elf aout-to-elf-build aout-to-elf-install \
move-aout-libs
#
OpenPOWER on IntegriCloud