Makefile revision 1.241 1 # $NetBSD: Makefile,v 1.241 2003/01/03 15:34:36 lukem Exp $
2 # from: @(#)Makefile 8.7 (Berkeley) 5/25/95
3
4 # Environment variables without default values:
5 # DESTDIR must be set before anything in this file will work.
6 # RELEASEDIR is where the tarred up stuff for a snapshot or
7 # release will be placed.
8 #
9 # Environment variables with default values:
10 # LOCALTIME will set the default local time for the system you
11 # build; it determines what /etc/localtime is symlink'd to.
12 # KERNSRCDIR points to kernel source; it is set by default to ../sys,
13 # but can be overridden.
14 # KERNOBJDIR is the kernel build directory, it defaults to
15 # ${KERNSRCDIR}/arch/${MACHINE}/compile, but can be overridden.
16 # KERNCONFDIR is where the configuration files for kernels are found;
17 # default is ${KERNSRCDIR}/arch/${MACHINE}/conf but can be overridden.
18 # UPDATE is normally undefined; if defined, don't do a 'make clean'
19 # before kernel compile
20 # NO_SENDMAIL is normally undefined; if defined, it will not do a
21 # `make distribution' in the sendmail config file source directory.
22 #
23 # Targets:
24 # distribution: makes a full NetBSD distribution in DESTDIR. If
25 # INSTALL_DONE is set, it will not do a `make install.'
26 # if DISTRIBUTION_DONE is set, it will not do anything.
27 # distrib-dirs: creates an empty NetBSD directory tree in DESTDIR.
28 # Called by distribution.
29 # snapshot: calls distribution, above, and then tars up the files
30 # into a release(7) format in RELEASEDIR/${MACHINE}.
31 # Any port-dependent stuff for this target is found in
32 # etc.${MACHINE}/Makefile.inc.
33 # release: a synonym for `snapshot'
34
35 # setting NOOBJ prevents "make obj" from doing anything;
36 # an objdir would break the installation stuff below
37 NOOBJ= # defined
38
39 # For NO_SENDMAIL, INSTPRIV, MKCRYPTO
40 .include <bsd.own.mk>
41
42 # For KERNSRCDIR, KERNOBJDIR, ...
43 .include <bsd.kernobj.mk>
44
45
46 .MAKEOVERRIDES+= USETOOLS
47
48 TZDIR= /usr/share/zoneinfo
49 LOCALTIME?= UTC
50 PWD_MKDB?= pwd_mkdb
51 MAKESUMS= CKSUM=${CKSUM:Q} sh ${NETBSDSRCDIR}/distrib/sets/makesums
52
53 # Flags for creating ISO CDROM image
54 # mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrecord
55 MKISOFS?= mkisofs
56 DISTRIBREV!= sh ${KERNSRCDIR}/conf/osrelease.sh -s
57 # ISO 9660 volume ID. Note that this can only contain [A-Z0-9_].
58 ISO_VOLID!= echo NETBSD_${MACHINE}_${DISTRIBREV} | tr a-z A-Z
59 MKISOFS_FLAGS+= -J -l \
60 -r -T -v \
61 -V ${ISO_VOLID} \
62 -P "The NetBSD Project" \
63 -m "${RELEASEDIR}/${MACHINE}/installation/cdrom"
64
65 # MD Makefile.inc may append MD targets to BIN[123]. Make sure all
66 # are empty, to preserve the old semantics of setting them below with "=".
67 BIN1=
68 BIN2=
69 BIN3=
70
71 # Directories to build in ${RELEASEDIR}/${MACHINE}.
72 # MD Makefile.inc files can add to this.
73 # NOTE: Parent directories must be listed before subdirectories.
74 INSTALLATION_DIRS= binary binary/sets binary/kernel installation
75
76 .if exists(etc.${MACHINE}/Makefile.inc)
77 .include "etc.${MACHINE}/Makefile.inc"
78 .endif
79
80 # -rw-r--r--
81 BINOWN= root
82 BINGRP= wheel
83 UTMPGRP= utmp
84 BIN1+= bootptab changelist csh.cshrc csh.login csh.logout daily \
85 daily.conf dm.conf floppytab ftpchroot ftpusers \
86 gettytab group hosts hosts.lpd inetd.conf lkm.conf \
87 mailer.conf man.conf monthly monthly.conf mrouted.conf \
88 netconfig networks newsyslog.conf nsswitch.conf ntp.conf \
89 passwd.conf phones printcap profile protocols rbootd.conf rc rc.conf \
90 rc.lkm rc.local rc.subr rc.shutdown remote rpc \
91 security security.conf services shells sysctl.conf syslog.conf \
92 weekly weekly.conf wscons.conf \
93 etc.${MACHINE}/ttys
94
95 # use machine-specific disktab if it exists, or the MI one otherwise
96 .if exists(etc.${MACHINE}/disktab)
97 BIN1+= etc.${MACHINE}/disktab
98 .else
99 BIN1+= disktab
100 .endif
101
102 .if exists(etc.${MACHINE}/ld.so.conf)
103 BIN1+= etc.${MACHINE}/ld.so.conf
104 .endif
105
106 .if exists(etc.${MACHINE}/ttyaction)
107 BIN1+= etc.${MACHINE}/ttyaction
108 .endif
109
110 # -rw-rw-r--
111 BIN2+= motd
112
113 # -rw-------
114 BIN3+= hosts.equiv
115
116 ETC_PKG=-T etc_pkg
117 BASE_PKG=-T base_pkg
118 ETC_INSTALL_FILE=${INSTALL_FILE} ${ETC_PKG}
119 ETC_INSTALL_LINK=${INSTALL_LINK} ${ETC_PKG}
120 ETC_INSTALL_SYMLINK=${INSTALL_SYMLINK} ${ETC_PKG}
121
122 NAMEDB= 127 root.cache named.conf localhost loopback.v6
123
124 .if make(install-etc-files) # {
125 .include <bsd.endian.mk>
126 .if ${TARGET_ENDIANNESS} == "1234"
127 TARGET_ENDIANNESS= -L
128 .elif ${TARGET_ENDIANNESS} == "4321"
129 TARGET_ENDIANNESS= -B
130 .else
131 TARGET_ENDIANNESS=
132 .endif
133 .endif # install-etc-files # }
134
135 obj:
136 mkdir -p ${KERNOBJDIR}
137
138 distribution: check_DESTDIR .WAIT distrib-dirs
139 .if !defined(DISTRIBUTION_DONE)
140 .if !defined(INSTALL_DONE)
141 (cd ${NETBSDSRCDIR}; ${MAKE} _DISTRIB= includes)
142 (cd ${NETBSDSRCDIR}; ${MAKE} _DISTRIB= install)
143 .endif # !INSTALL_DONE
144 ${MAKE} install-etc-files
145 .endif # !DISTRIBUTION_DONE
146
147 install-etc-files: check_DESTDIR
148 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
149 ${BIN1} ${DESTDIR}/etc
150 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 \
151 ${BIN2} ${DESTDIR}/etc
152 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
153 ${BIN3} ${DESTDIR}/etc
154 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
155 aliases ${DESTDIR}/etc/mail
156 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
157 /dev/null ${DESTDIR}/etc/mail/local-host-names
158 ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
159 crontab ${DESTDIR}/var/cron/tabs/root
160 ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
161 master.passwd ${DESTDIR}/etc
162 ${PWD_MKDB} -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ \
163 ${DESTDIR}/etc/master.passwd
164 .if defined(UNPRIVED)
165 ( \
166 echo "./etc/passwd type=file mode=0644 uname=root gname=wheel tags=etc_pkg"; \
167 echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel tags=etc_pkg"; \
168 echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel tags=etc_pkg"; \
169 ) | ${METALOG.add}
170 .endif # UNPRIVED
171 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 555 \
172 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
173 ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
174 minfree ${DESTDIR}/var/crash
175 (cd root; \
176 ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
177 dot.cshrc ${DESTDIR}/root/.cshrc; \
178 ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
179 dot.klogin ${DESTDIR}/root/.klogin; \
180 ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
181 dot.login ${DESTDIR}/root/.login; \
182 ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
183 dot.profile ${DESTDIR}/root/.profile; \
184 ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
185 dot.shrc ${DESTDIR}/root/.shrc; \
186 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
187 ${ETC_INSTALL_LINK} ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
188 ${ETC_INSTALL_LINK} ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
189 (cd defaults; ${MAKE} install)
190 (cd mtree; ${MAKE} install)
191 (cd namedb; \
192 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
193 ${NAMEDB} ${DESTDIR}/etc/namedb)
194 (cd rc.d; ${MAKE} install)
195 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
196 postinstall ${DESTDIR}/etc
197 ${ETC_INSTALL_SYMLINK} -o root -g wheel -m 755 \
198 ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
199 ${ETC_INSTALL_SYMLINK} -o root -g wheel -m 755 \
200 /usr/sbin/rmt ${DESTDIR}/etc/rmt
201 ${ETC_INSTALL_FILE} -o ${BINOWN} -g operator -m 664 \
202 /dev/null ${DESTDIR}/etc/dumpdates
203 ${ETC_INSTALL_FILE} -o ${BINOWN} -g operator -m 600 \
204 /dev/null ${DESTDIR}/etc/skeykeys
205 ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
206 /dev/null ${DESTDIR}/var/at/at.deny
207 ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
208 /dev/null ${DESTDIR}/var/cron/log
209 ${ETC_INSTALL_FILE} -o nobody -g ${BINGRP} -m 664 \
210 /dev/null ${DESTDIR}/var/db/locate.database
211 ${ETC_INSTALL_FILE} -o uucp -g dialer -m 640 \
212 /dev/null ${DESTDIR}/var/log/aculog
213 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
214 /dev/null ${DESTDIR}/var/log/authlog
215 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 \
216 /dev/null ${DESTDIR}/var/log/lastlog
217 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 640 \
218 /dev/null ${DESTDIR}/var/log/lpd-errs
219 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
220 /dev/null ${DESTDIR}/var/log/maillog
221 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
222 /dev/null ${DESTDIR}/var/log/messages
223 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
224 /dev/null ${DESTDIR}/var/log/secure
225 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
226 /dev/null ${DESTDIR}/var/log/sendmail.st
227 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
228 /dev/null ${DESTDIR}/var/log/wtmp
229 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
230 /dev/null ${DESTDIR}/var/log/wtmpx
231 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
232 /dev/null ${DESTDIR}/var/log/xferlog
233 ${ETC_INSTALL_FILE} -o daemon -g staff -m 664 \
234 /dev/null ${DESTDIR}/var/msgs/bounds
235 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${UTMPGRP} -m 664 \
236 /dev/null ${DESTDIR}/var/run/utmp
237 ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${UTMPGRP} -m 664 \
238 /dev/null ${DESTDIR}/var/run/utmpx
239 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
240 /dev/null ${DESTDIR}/var/games/atc_scores
241 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
242 /dev/null ${DESTDIR}/var/games/battlestar.log
243 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
244 /dev/null ${DESTDIR}/var/games/cfscores
245 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
246 /dev/null ${DESTDIR}/var/games/criblog
247 ${ETC_INSTALL_FILE} -o games -g games -m 660 \
248 /dev/null ${DESTDIR}/var/games/hackdir/perm
249 ${ETC_INSTALL_FILE} -o games -g games -m 660 \
250 /dev/null ${DESTDIR}/var/games/hackdir/record
251 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
252 /dev/null ${DESTDIR}/var/games/larn/llog12.0
253 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
254 /dev/null ${DESTDIR}/var/games/larn/lscore12.0
255 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
256 /dev/null ${DESTDIR}/var/games/larn/playerids
257 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
258 /dev/null ${DESTDIR}/var/games/robots_roll
259 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
260 /dev/null ${DESTDIR}/var/games/rogue.scores
261 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
262 /dev/null ${DESTDIR}/var/games/saillog
263 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
264 /dev/null ${DESTDIR}/var/games/snakerawscores
265 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
266 /dev/null ${DESTDIR}/var/games/snake.log
267 ${ETC_INSTALL_FILE} -o games -g games -m 664 \
268 /dev/null ${DESTDIR}/var/games/tetris.scores
269 (cd skel; ${MAKE} distribution)
270 (cd ${NETBSDSRCDIR}/usr.bin/mail; ${MAKE} distribution)
271 (cd ${NETBSDSRCDIR}/gnu/usr.sbin/postfix/; ${MAKE} distribution)
272 .if (${MKCRYPTO} != "no")
273 (cd ${NETBSDSRCDIR}/usr.bin/ssh; ${MAKE} distribution)
274 .endif
275 .if !defined(NO_SENDMAIL)
276 (cd ${NETBSDSRCDIR}/gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
277 .endif
278
279 distrib-dirs: check_DESTDIR
280 ${INSTALL_DIR} -o root -g wheel -m 755 ${BASE_PKG} ${DESTDIR}
281 ${MTREE} -def mtree/NetBSD.dist -N ${.CURDIR} \
282 -p ${DESTDIR}/ -U ${UNPRIVED:D-W}
283
284 release snapshot: check_DESTDIR check_RELEASEDIR .WAIT \
285 distribution .WAIT \
286 snap_pre .WAIT snap_kern .WAIT \
287 snap_post .WAIT snap_md_post
288 (cd ${NETBSDSRCDIR}/distrib/sets; ${MAKE} sets)
289 ${MAKESUMS} -t ${RELEASEDIR}/${MACHINE}/binary/kernel '*.gz'
290
291 # Standalone target to create a CDROM image after the release
292 # was composed. Should be run after "make build" in both src and xsrc
293 iso-image: check_DESTDIR check_RELEASEDIR .WAIT iso-image_md_post
294 # empty target
295
296 iso-image_mi: check_DESTDIR check_RELEASEDIR .WAIT iso-image_md_pre
297 @if ${MKISOFS} --version; then \
298 mkdir -p ${RELEASEDIR}/${MACHINE}/installation/cdrom ; \
299 ${MKISOFS} ${MKISOFS_FLAGS} \
300 -o ${RELEASEDIR}/${MACHINE}/installation/cdrom/netbsd-${MACHINE}.iso \
301 ${RELEASEDIR}/${MACHINE} ; \
302 ${MAKESUMS} -t \
303 ${RELEASEDIR}/${MACHINE}/installation/cdrom '*.iso' ; \
304 else \
305 echo "install pkgsrc/sysutils/cdrecord and type 'make iso-image'." ; \
306 fi
307
308 # Setup the ${RELEASEDIR}/${MACHINE} to produce a bootable CD image:
309 iso-image_md_pre: check_DESTDIR check_RELEASEDIR
310 # nothing here -- look in the machine-dependent Makefile.inc
311
312 # Fixup the CD-image to be bootable
313 iso-image_md_post: check_DESTDIR check_RELEASEDIR .WAIT iso-image_mi
314 # nothing here -- look in the machine-dependent Makefile.inc
315
316 snap_pre: check_DESTDIR check_RELEASEDIR
317 ${INSTALL} -d -m 755 ${RELEASEDIR}
318 .ifndef UPDATE
319 # Could be a mount point, ignore the errors
320 -/bin/rm -rf ${RELEASEDIR}/${MACHINE}
321 .endif
322 ${INSTALL} -d -m 755 ${RELEASEDIR}/${MACHINE}
323 .for dir in ${INSTALLATION_DIRS}
324 ${INSTALL} -d -m 755 ${RELEASEDIR}/${MACHINE}/${dir}
325 .endfor
326
327 snap_post: check_DESTDIR check_RELEASEDIR
328 .ifndef UPDATE
329 cd ${NETBSDSRCDIR}/distrib && ${MAKE} cleandir
330 .endif
331 cd ${NETBSDSRCDIR}/distrib && ${MAKE} depend && ${MAKE} && \
332 ${MAKE} release
333
334 # snap_kern --
335 # This target builds the kernels specified by each port.
336 # A port may specify the following kernels:
337 #
338 # KERNEL_SETS The list of kernels that will be
339 # packaged into sets, named
340 # kern-${kernel}.tgz. These kernels
341 # are also placed in the binary/kernel
342 # area of the release package as
343 # netbsd-${kernel}.gz.
344 #
345 # EXTRA_KERNELS Additional kernels to place in the
346 # binary/kernel area of the release
347 # package as netbsd-${kernel}.gz, but
348 # which are not placed into sets. This
349 # allows a port to provide e.g. a netbootable
350 # installation kernel containing a ramdisk.
351 #
352 # BUILD_KERNELS Additional kernels to build which are
353 # not placed into sets nor into the
354 # binary/kernel area of the release
355 # package. These are typically kernels
356 # that are built for inclusion only in
357 # installation disk/CD-ROM/tape images.
358 #
359 # A port may also specify KERNEL_SUFFIXES, which is an optional list
360 # of filename suffixes for kernels to include in the kernel sets and
361 # in the binary/kernel area of the release package (e.g. "netbsd" vs.
362 # "netbsd.ecoff" and "netbsd.srec"). It is not an error if kernels
363 # with these suffixes do not exist in the kernel build directory.
364 #
365 #
366 # A list of all the kernels to build, which can be overridden from
367 # external sources (such as make(1)'s environment or command line)
368 #
369 ALL_KERNELS?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
370 #
371 GETKERNELAWK= awk '/^config/ {print $$2; found=1} \
372 END{ if (found == 0) print "netbsd"; }'
373 #
374 .if !target(snap_kern) # {
375
376 # build_kernels --
377 # Configure & compile kernels listed in ${ALL_KERNELS}
378 #
379 .if !defined(KERNELS_DONE) # {
380 .for configfile in ${ALL_KERNELS} # {
381 _KERNELS_TO_BUILD+=kern-${configfile}
382 kern-${configfile}:
383 cd ${KERNCONFDIR} && ${CONFIG} -s ${KERNSRCDIR} \
384 -b ${KERNOBJDIR}/${configfile:C/.*\///} ${configfile}
385 .if !defined(UPDATE)
386 cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} distclean
387 .endif
388 cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} depend && ${MAKE}
389 .endfor # ALL_KERNELS # }
390 .endif # KERNELS_DONE # }
391
392 build_kernels: ${_KERNELS_TO_BUILD}
393
394 # build_kernelsets --
395 # Create kernel sets from ${KERNEL_SETS} into
396 # ${RELEASEDIR}/${MACHINE}/binary/sets
397 #
398 .for configfile in ${KERNEL_SETS} # {
399 _KERNELSETS_TO_BUILD+=kernset-${configfile}
400 kernset-${configfile}:
401 kernlist=`${GETKERNELAWK} ${KERNCONFDIR}/${configfile}`; \
402 kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
403 kernsuffixes="${KERNEL_SUFFIXES}"; \
404 cd $${kerndir} && ( \
405 echo "/set uname=${BINOWN} gname=${BINGRP}"; \
406 echo ". type=dir optional"; \
407 for kernel in $${kernlist}; do \
408 echo "./$${kernel} type=file"; \
409 for s in $${kernsuffixes}; do \
410 if [ -f $${kernel}.$${s} ]; then \
411 echo "./$${kernel}.$${s} type=file"; \
412 fi; \
413 done; \
414 done ) | GZIP=-9 ${PAX} -O -zw \
415 -M -N ${NETBSDSRCDIR}/etc \
416 -f ${RELEASEDIR}/${MACHINE}/binary/sets/kern-${configfile}.tgz
417 .endfor # KERNEL_SETS # }
418
419 build_kernelsets: ${_KERNELSETS_TO_BUILD}
420
421 # build_releasekernels --
422 # Build kernel.gz from ${KERNEL_SETS} ${EXTRA_KERNELS} into
423 # ${RELEASEDIR}/${MACHINE}/binary/kernel
424 #
425 .for configfile in ${KERNEL_SETS} ${EXTRA_KERNELS} # {
426 _RELEASEKERNELS_TO_BUILD+=releasekern-${configfile}
427 releasekern-${configfile}:
428 kernlist=`${GETKERNELAWK} ${KERNCONFDIR}/${configfile:C/.*\///}`; \
429 kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
430 kernsuffixes="${KERNEL_SUFFIXES}"; \
431 cd $${kerndir} && \
432 gziplist=`for kernel in $${kernlist}; do \
433 echo "$${kernel}"; \
434 for s in $${kernsuffixes}; do \
435 if [ -f $${kernel}.$${s} ]; then \
436 echo "$${kernel}.$${s}"; \
437 fi; \
438 done; \
439 done`; \
440 for kernel in $${gziplist} ; do \
441 gzip -c -9 < $${kernel} > \
442 ${RELEASEDIR}/${MACHINE}/binary/kernel/$${kernel}-${configfile:C/.*\///}.gz ; done
443 .endfor # KERNEL_SETS EXTRA_KERNELS # }
444
445 build_releasekernels: ${_RELEASEKERNELS_TO_BUILD}
446
447 # snap_kern --
448 # build the kernels, then the sets & release kernels
449 snap_kern: check_DESTDIR check_RELEASEDIR .WAIT \
450 build_kernels .WAIT \
451 build_kernelsets build_releasekernels
452
453 .endif # !target(snap_kern) # }
454
455
456 snap_md_post: check_DESTDIR check_RELEASEDIR
457 # nothing here -- look in the machine-dependent Makefile.inc
458
459 .include <bsd.prog.mk>
460