Deleted Added
full compact
Makefile (55026) Makefile (55678)
1#
1#
2# $FreeBSD: head/Makefile 55026 1999-12-23 13:53:44Z marcel $
2# $FreeBSD: head/Makefile 55678 2000-01-09 18:17:48Z marcel $
3#
4# The user-driven targets are:
5#
6# buildworld - Rebuild *everything*, including glue to help do
7# upgrades.
8# installworld - Install everything built by "buildworld".
9# world - buildworld + installworld.
10# update - Convenient way to update your source tree (cvs).

--- 64 unchanged lines hidden (view full) ---

75# updated to contain OBJFORMAT=elf. From then on, you're elf by default.
76#
77# ----------------------------------------------------------------------------
78#
79#
80# Define the user-driven targets. These are listed here in alphabetical
81# order, but that's not important.
82#
3#
4# The user-driven targets are:
5#
6# buildworld - Rebuild *everything*, including glue to help do
7# upgrades.
8# installworld - Install everything built by "buildworld".
9# world - buildworld + installworld.
10# update - Convenient way to update your source tree (cvs).

--- 64 unchanged lines hidden (view full) ---

75# updated to contain OBJFORMAT=elf. From then on, you're elf by default.
76#
77# ----------------------------------------------------------------------------
78#
79#
80# Define the user-driven targets. These are listed here in alphabetical
81# order, but that's not important.
82#
83TGTS = afterdistribute all buildworld checkdpadd clean cleandepend cleandir \
84 depend distribute everything hierarchy includes install installmost \
85 installworld lint maninstall mk most obj objlink regress rerelease \
86 tags update
83TGTS= afterdistribute all buildkernel buildworld checkdpadd clean \
84 cleandepend cleandir depend distribute everything hierarchy includes \
85 install installkernel installmost installworld lint maninstall mk \
86 most obj objlink regress rerelease tags update
87
88PATH= /sbin:/bin:/usr/sbin:/usr/bin
89MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1
90
91#
92# Handle the user-driven targets, using the source relative mk files.
93#
87
88PATH= /sbin:/bin:/usr/sbin:/usr/bin
89MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1
90
91#
92# Handle the user-driven targets, using the source relative mk files.
93#
94${TGTS} : upgrade_checks
94${TGTS}: upgrade_checks
95 @cd ${.CURDIR}; \
96 ${MAKE} ${.TARGET}
97
98# Set a reasonable default
99.MAIN: all
100
101STARTTIME!= LC_TIME=C date
102#

--- 31 unchanged lines hidden (view full) ---

134#
135# Perform a few tests to determine if the installed tools are adequate
136# for building the world. These are for older systems (prior to 2.2.5).
137#
138# From 2.2.5 onwards, the installed tools will pass these upgrade tests,
139# so the normal make world is capable of doing what is required to update
140# the system to current.
141#
95 @cd ${.CURDIR}; \
96 ${MAKE} ${.TARGET}
97
98# Set a reasonable default
99.MAIN: all
100
101STARTTIME!= LC_TIME=C date
102#

--- 31 unchanged lines hidden (view full) ---

134#
135# Perform a few tests to determine if the installed tools are adequate
136# for building the world. These are for older systems (prior to 2.2.5).
137#
138# From 2.2.5 onwards, the installed tools will pass these upgrade tests,
139# so the normal make world is capable of doing what is required to update
140# the system to current.
141#
142upgrade_checks :
143 @cd ${.CURDIR}; if `make -m ${.CURDIR}/share/mk test > /dev/null 2>&1`; then ok=1; else ${MAKE} -f Makefile.upgrade make; fi;
142upgrade_checks:
143 @cd ${.CURDIR}; \
144 if ! make -m ${.CURDIR}/share/mk test > /dev/null 2>&1; then \
145 make make; \
146 fi
144
145#
146# A simple test target used as part of the test to see if make supports
147# the -m argument.
148#
147
148#
149# A simple test target used as part of the test to see if make supports
150# the -m argument.
151#
149test :
152test:
150
151#
153
154#
155# Upgrade the installed make to the current version using the installed
156# headers, libraries and build tools. This is required on installed versions
157# prior to 2.2.5 in which the installed make doesn't support the -m argument.
158#
159make:
160 @echo
161 @echo "--------------------------------------------------------------"
162 @echo " Upgrading the installed make"
163 @echo "--------------------------------------------------------------"
164 @cd ${.CURDIR}/usr.bin/make; \
165 make obj && make depend && make all && make install
166
167#
152# Define the upgrade targets. These are listed here in alphabetical
153# order, but that's not important.
154#
168# Define the upgrade targets. These are listed here in alphabetical
169# order, but that's not important.
170#
155UPGRADE = aout-to-elf aout-to-elf-build aout-to-elf-install \
171UPGRADE= aout-to-elf aout-to-elf-build aout-to-elf-install \
156 move-aout-libs
157
158#
159# Handle the upgrade targets, using the source relative mk files.
160#
161
162upgrade: aout-to-elf
163
164${UPGRADE} : upgrade_checks
165 @cd ${.CURDIR}; \
166 ${MAKE} -f Makefile.upgrade -m ${.CURDIR}/share/mk ${.TARGET}
172 move-aout-libs
173
174#
175# Handle the upgrade targets, using the source relative mk files.
176#
177
178upgrade: aout-to-elf
179
180${UPGRADE} : upgrade_checks
181 @cd ${.CURDIR}; \
182 ${MAKE} -f Makefile.upgrade -m ${.CURDIR}/share/mk ${.TARGET}