Makefile (108451) | Makefile (110035) |
---|---|
1# | 1# |
2# $FreeBSD: head/Makefile 108451 2002-12-30 16:48:35Z schweikh $ | 2# $FreeBSD: head/Makefile 110035 2003-01-29 10:00:42Z ru $ |
3# 4# The user-driven targets are: 5# 6# universe - *Really* build *everything*: Buildworld and 7# all kernels on all architectures. 8# buildworld - Rebuild *everything*, including glue to help do 9# upgrades. 10# installworld - Install everything built by "buildworld". --- 86 unchanged lines hidden (view full) --- 97BITGTS= files includes 98BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/} 99 100.ORDER: buildworld installworld 101.ORDER: buildworld distributeworld 102.ORDER: buildkernel installkernel 103.ORDER: buildkernel reinstallkernel 104 | 3# 4# The user-driven targets are: 5# 6# universe - *Really* build *everything*: Buildworld and 7# all kernels on all architectures. 8# buildworld - Rebuild *everything*, including glue to help do 9# upgrades. 10# installworld - Install everything built by "buildworld". --- 86 unchanged lines hidden (view full) --- 97BITGTS= files includes 98BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/} 99 100.ORDER: buildworld installworld 101.ORDER: buildworld distributeworld 102.ORDER: buildkernel installkernel 103.ORDER: buildkernel reinstallkernel 104 |
105PATH= /sbin:/bin:/usr/sbin:/usr/bin |
|
105MAKEOBJDIRPREFIX?= /usr/obj | 106MAKEOBJDIRPREFIX?= /usr/obj |
106MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE_ARCH} 107PATH= ${MAKEPATH}:/sbin:/bin:/usr/sbin:/usr/bin 108MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1 | 107MAKEPATH= ${MAKEOBJDIRPREFIX}${.CURDIR}/make.${MACHINE} 108_MAKE= PATH=${PATH} \ 109 `if [ -x ${MAKEPATH}/make ]; then echo ${MAKEPATH}/make; else echo ${MAKE}; fi` \ 110 -m ${.CURDIR}/share/mk -f Makefile.inc1 |
109 110# 111# Handle the user-driven targets, using the source relative mk files. 112# 113${TGTS} ${BITGTS}: upgrade_checks 114 @cd ${.CURDIR}; \ | 111 112# 113# Handle the user-driven targets, using the source relative mk files. 114# 115${TGTS} ${BITGTS}: upgrade_checks 116 @cd ${.CURDIR}; \ |
115 ${MAKE} ${.TARGET} | 117 ${_MAKE} ${.TARGET} |
116 117# Set a reasonable default 118.MAIN: all 119 120STARTTIME!= LC_ALL=C date 121# 122# world 123# --- 4 unchanged lines hidden (view full) --- 128 @echo "--------------------------------------------------------------" 129 @echo ">>> elf make world started on ${STARTTIME}" 130 @echo "--------------------------------------------------------------" 131.if target(pre-world) 132 @echo 133 @echo "--------------------------------------------------------------" 134 @echo ">>> Making 'pre-world' target" 135 @echo "--------------------------------------------------------------" | 118 119# Set a reasonable default 120.MAIN: all 121 122STARTTIME!= LC_ALL=C date 123# 124# world 125# --- 4 unchanged lines hidden (view full) --- 130 @echo "--------------------------------------------------------------" 131 @echo ">>> elf make world started on ${STARTTIME}" 132 @echo "--------------------------------------------------------------" 133.if target(pre-world) 134 @echo 135 @echo "--------------------------------------------------------------" 136 @echo ">>> Making 'pre-world' target" 137 @echo "--------------------------------------------------------------" |
136 @cd ${.CURDIR}; ${MAKE} pre-world | 138 @cd ${.CURDIR}; ${_MAKE} pre-world |
137.endif | 139.endif |
138 @cd ${.CURDIR}; ${MAKE} buildworld 139 @cd ${.CURDIR}; ${MAKE} -B installworld | 140 @cd ${.CURDIR}; ${_MAKE} buildworld 141 @cd ${.CURDIR}; ${_MAKE} -B installworld |
140.if target(post-world) 141 @echo 142 @echo "--------------------------------------------------------------" 143 @echo ">>> Making 'post-world' target" 144 @echo "--------------------------------------------------------------" | 142.if target(post-world) 143 @echo 144 @echo "--------------------------------------------------------------" 145 @echo ">>> Making 'post-world' target" 146 @echo "--------------------------------------------------------------" |
145 @cd ${.CURDIR}; ${MAKE} post-world | 147 @cd ${.CURDIR}; ${_MAKE} post-world |
146.endif 147 @echo 148 @echo "--------------------------------------------------------------" 149 @printf ">>> elf make world completed on `LC_ALL=C date`\n (started ${STARTTIME})\n" 150 @echo "--------------------------------------------------------------" 151 152# 153# kernel 154# 155# Short hand for `make buildkernel installkernel' 156# 157kernel: buildkernel installkernel 158 159# 160# Perform a few tests to determine if the installed tools are adequate 161# for building the world. 162# 163upgrade_checks: | 148.endif 149 @echo 150 @echo "--------------------------------------------------------------" 151 @printf ">>> elf make world completed on `LC_ALL=C date`\n (started ${STARTTIME})\n" 152 @echo "--------------------------------------------------------------" 153 154# 155# kernel 156# 157# Short hand for `make buildkernel installkernel' 158# 159kernel: buildkernel installkernel 160 161# 162# Perform a few tests to determine if the installed tools are adequate 163# for building the world. 164# 165upgrade_checks: |
164 @(cd ${.CURDIR}/tools/regression/usr.bin/make && \ 165 PATH=${PATH} make 2>/dev/null) || \ 166 (cd ${.CURDIR} && make make) | 166 @if ! (cd ${.CURDIR}/tools/regression/usr.bin/make && \ 167 PATH=${PATH} ${MAKE} 2>/dev/null); \ 168 then \ 169 (cd ${.CURDIR} && make make); \ 170 fi |
167 168# 169# Upgrade make(1) to the current version using the installed 170# headers, libraries and tools. 171# 172MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \ 173 DESTDIR= \ 174 INSTALL="sh ${.CURDIR}/tools/install.sh" --- 23 unchanged lines hidden (view full) --- 198# 199# Handle the upgrade targets, using the source relative mk files. 200# 201 202upgrade: aout-to-elf 203 204${UPGRADE} : upgrade_checks 205 @cd ${.CURDIR}; \ | 171 172# 173# Upgrade make(1) to the current version using the installed 174# headers, libraries and tools. 175# 176MMAKEENV= MAKEOBJDIRPREFIX=${MAKEPATH} \ 177 DESTDIR= \ 178 INSTALL="sh ${.CURDIR}/tools/install.sh" --- 23 unchanged lines hidden (view full) --- 202# 203# Handle the upgrade targets, using the source relative mk files. 204# 205 206upgrade: aout-to-elf 207 208${UPGRADE} : upgrade_checks 209 @cd ${.CURDIR}; \ |
206 ${MAKE} -f Makefile.upgrade -m ${.CURDIR}/share/mk ${.TARGET} | 210 ${_MAKE} -f Makefile.upgrade -m ${.CURDIR}/share/mk ${.TARGET} |
207 208 209universe: 210 @echo "--------------------------------------------------------------" 211 @echo ">>> make universe started on ${STARTTIME}" 212 @echo "--------------------------------------------------------------" 213.for arch in i386 sparc64 alpha ia64 214 @printf ">> ${arch} started on `LC_ALL=C date`\n" --- 39 unchanged lines hidden --- | 211 212 213universe: 214 @echo "--------------------------------------------------------------" 215 @echo ">>> make universe started on ${STARTTIME}" 216 @echo "--------------------------------------------------------------" 217.for arch in i386 sparc64 alpha ia64 218 @printf ">> ${arch} started on `LC_ALL=C date`\n" --- 39 unchanged lines hidden --- |