Makefile revision 1.210
11.210Slukem# $NetBSD: Makefile,v 1.210 2002/04/10 12:05:20 lukem Exp $ 21.66Smikel# from: @(#)Makefile 8.7 (Berkeley) 5/25/95 31.1Scgd 41.96Scjs# Environment variables without default values: 51.96Scjs# DESTDIR must be set before anything in this file will work. 61.96Scjs# RELEASEDIR is where the tarred up stuff for a snapshot or 71.96Scjs# release will be placed. 81.96Scjs# 91.96Scjs# Environment variables with default values: 101.96Scjs# LOCALTIME will set the default local time for the system you 111.96Scjs# build; it determines what /etc/localtime is symlink'd to. 121.96Scjs# KERNSRCDIR points to kernel source; it is set by default to ../sys, 131.96Scjs# but can be overridden. 141.96Scjs# KERNOBJDIR is the kernel build directory, it defaults to 151.172Sjlam# ${KERNSRCDIR}/arch/${MACHINE}/compile, but can be overridden. 161.96Scjs# KERNCONFDIR is where the configuration files for kernels are found; 171.96Scjs# default is ${KERNSRCDIR}/arch/${MACHINE}/conf but can be overridden. 181.97Scjs# UPDATE is normally undefined; if defined, don't do a 'make clean' 191.97Scjs# before kernel compile 201.96Scjs# NO_SENDMAIL is normally undefined; if defined, it will not do a 211.96Scjs# `make distribution' in the sendmail config file source directory. 221.154Sthorpej# 231.96Scjs# Targets: 241.96Scjs# distribution: makes a full NetBSD distribution in DESTDIR. If 251.96Scjs# INSTALL_DONE is set, it will not do a `make install.' 261.182Schs# if DISTRIBUTION_DONE is set, it will not do anything. 271.96Scjs# distrib-dirs: creates an empty NetBSD directory tree in DESTDIR. 281.96Scjs# Called by distribution. 291.96Scjs# snapshot: calls distribution, above, and then tars up the files 301.96Scjs# into a release(7) format in RELEASEDIR. Any port-dependent 311.96Scjs# stuff for this target is found in etc.${MACHINE}/Makefile.inc. 321.106Scjs# release: a synonym for `snapshot' 331.96Scjs 341.199Stv# setting NOOBJ prevents "make obj" from doing anything; 351.199Stv# an objdir would break the installation stuff below 361.199StvNOOBJ= # defined 371.199Stv 381.149Ssjg# do this before bsd.own.mk so we get correct KERNSRCDIR 391.145Ssjg.include "../Makefile.inc" 401.145Ssjg 411.155Sthorpej# For NO_SENDMAIL, INSTPRIV, MKCRYPTO 421.90Skim.include <bsd.own.mk> 431.187Sjmc 441.187Sjmc.MAKEOVERRIDES+= USETOOLS 451.90Skim 461.23ScgdTZDIR= /usr/share/zoneinfo 471.157SkleinkLOCALTIME?= UTC 481.198SjmcPWD_MKDB?= pwd_mkdb 491.206Sbjh21MAKESUMS= CKSUM=${CKSUM:Q} sh ../distrib/sets/makesums 501.19Sderaadt 511.161Shubertf# Flags for creating ISO CDROM image 521.161Shubertf# mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrecord 531.161ShubertfMKISOFS?= mkisofs 541.161ShubertfMKISOFS_FLAGS+= -J -l \ 551.161Shubertf -r -T -v \ 561.161Shubertf -P "The NetBSD Project" \ 571.164Shubertf -m "${RELEASEDIR}/installation/cdrom" 581.1Scgd 591.80Sjonathan# MD Makefile.inc may append MD targets to BIN[123]. Make sure all 601.80Sjonathan# are empty, to preserve the old semantics of setting them below with "=". 611.200SlukemBIN1= 621.80SjonathanBIN2= 631.80SjonathanBIN3= 641.80Sjonathan 651.117Ssimonb# Directories to build in ${RELEASEDIR}. MD Makefile.inc files can 661.117Ssimonb# add to this. 671.117Ssimonb# NOTE: Parent directories must be listed before subdirectories. 681.117SsimonbINSTALLATION_DIRS= \ 691.158Sfvdl binary binary/sets binary/kernel installation 701.117Ssimonb 711.71Scjs.if exists(etc.${MACHINE}/Makefile.inc) 721.71Scjs.include "etc.${MACHINE}/Makefile.inc" 731.71Scjs.endif 741.32Sjtc 751.96Scjs# Use multiple jobs for kernel builds, if NBUILDJOBS set. 761.96Scjs# (Taken from src/Makefile.) 771.96Scjs.if defined(NBUILDJOBS) 781.96Scjs_J= -j${NBUILDJOBS} 791.96Scjs.endif 801.96Scjs 811.21Scgd# -rw-r--r-- 821.21ScgdBINOWN= root 831.21ScgdBINGRP= wheel 841.184SlukemBIN1+= bootptab changelist csh.cshrc csh.login csh.logout daily \ 851.131Sveego daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 861.131Sveego gettytab group hosts hosts.lpd inetd.conf lkm.conf \ 871.131Sveego mailer.conf man.conf monthly monthly.conf mrouted.conf \ 881.151Sfvdl netconfig networks newsyslog.conf nsswitch.conf ntp.conf \ 891.131Sveego phones printcap profile protocols rbootd.conf rc rc.conf \ 901.159Slukem rc.lkm rc.local rc.subr rc.shutdown remote rpc \ 911.142Stsarna security security.conf services shells sysctl.conf syslog.conf \ 921.142Stsarna weekly weekly.conf wscons.conf \ 931.109Sdrochner etc.${MACHINE}/ttys etc.${MACHINE}/disktab 941.105Smycroft 951.121Sfvdl.if (${MACHINE_ARCH} == "m68k") || \ 961.105Smycroft (${MACHINE_ARCH} == "ns32k") || \ 971.208Swiz (${MACHINE_ARCH} == "vax") 981.129SchristosBIN1+= ld.so.conf 991.129Schristos.elif exists(etc.${MACHINE_ARCH}/ld.so.conf) 1001.132SjlamBIN1+= etc.${MACHINE_ARCH}/ld.so.conf 1011.152Sperry.endif 1021.152Sperry 1031.152Sperry.if exists(etc.${MACHINE_ARCH}/ttyaction) 1041.152SperryBIN1+= etc.${MACHINE_ARCH}/ttyaction 1051.105Smycroft.endif 1061.1Scgd 1071.46Sderaadt# -rw-rw-r-- 1081.80SjonathanBIN2+= motd 1091.1Scgd 1101.77Smycroft# -rw------- 1111.80SjonathanBIN3+= hosts.equiv 1121.77Smycroft 1131.144SthorpejNAMEDB= 127 root.cache named.conf localhost loopback.v6 1141.1Scgd 1151.200Slukem.if make(release) || make(snapshot) || make(distribution) # { 1161.170Sjdolecek# find out endianness of target and set proper flag for pwd_mkdb so that 1171.170Sjdolecek# it creates database in same endianness 1181.191Stv.if exists(${DESTDIR}/usr/include/sys/endian.h) 1191.171SsimonbTARGET_ENDIANNESS!= \ 1201.191Stv printf '\#include <sys/endian.h>\n_BYTE_ORDER\n' | \ 1211.171Ssimonb ${CC} -I${DESTDIR}/usr/include -E - | tail -1 | awk '{print $$1}' 1221.170Sjdolecek.else 1231.170SjdolecekTARGET_ENDIANNESS= 1241.170Sjdolecek.endif 1251.170Sjdolecek 1261.191Stv.if ${TARGET_ENDIANNESS} == "1234" 1271.170SjdolecekTARGET_ENDIANNESS= -L 1281.191Stv.elif ${TARGET_ENDIANNESS} == "4321" 1291.170SjdolecekTARGET_ENDIANNESS= -B 1301.170Sjdolecek.else 1311.170SjdolecekTARGET_ENDIANNESS= 1321.191Stv.endif 1331.200Slukem.endif # release || snapshot || distribution # } 1341.170Sjdolecek 1351.149Ssjg.include <bsd.kernobj.mk> 1361.149Ssjg 1371.149Ssjgobj: 1381.149Ssjg mkdir -p ${KERNOBJDIR} 1391.149Ssjg 1401.204Slukemdistribution: check_DESTDIR .WAIT distrib-dirs 1411.182Schs.if !defined(DISTRIBUTION_DONE) 1421.87Sperry.if !defined(INSTALL_DONE) 1431.107Sscottr (cd ..; ${MAKE} _DISTRIB= includes) 1441.107Sscottr (cd ..; ${MAKE} _DISTRIB= install) 1451.200Slukem.endif # !INSTALL_DONE 1461.193Sthorpej ${MAKE} install-etc-files 1471.200Slukem.endif # !DISTRIBUTION_DONE 1481.193Sthorpej 1491.204Slukeminstall-etc-files: check_DESTDIR 1501.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 1511.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 1521.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} ${DESTDIR}/etc 1531.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 aliases \ 1541.147Sitojun ${DESTDIR}/etc/mail 1551.202Slukem ${INSTALL_FILE} -o root -g wheel -m 600 crontab \ 1561.56Sthorpej ${DESTDIR}/var/cron/tabs/root 1571.202Slukem ${INSTALL_FILE} -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 1581.198Sjmc ${PWD_MKDB} -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ \ 1591.171Ssimonb ${DESTDIR}/etc/master.passwd 1601.194Sperry.if defined(UNPRIVED) 1611.194Sperry echo "${DESTDIR}/etc/passwd type=file mode=0644 uname=root gname=wheel" \ 1621.194Sperry | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG} 1631.194Sperry echo "${DESTDIR}/etc/pwd.db type=file mode=0644 uname=root gname=wheel" \ 1641.194Sperry | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG} 1651.194Sperry echo "${DESTDIR}/etc/spwd.db type=file mode=0600 uname=root gname=wheel" \ 1661.194Sperry | sed -e 's|^/|./|g' -e 's|//|/|g' >>${METALOG} 1671.200Slukem.endif # UNPRIVED 1681.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 555 \ 1691.1Scgd MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 1701.202Slukem ${INSTALL_FILE} -o root -g wheel -m 600 minfree ${DESTDIR}/var/crash 1711.1Scgd (cd root; \ 1721.202Slukem ${INSTALL_FILE} -o root -g wheel -m 644 dot.cshrc \ 1731.1Scgd ${DESTDIR}/root/.cshrc; \ 1741.202Slukem ${INSTALL_FILE} -o root -g wheel -m 600 dot.klogin \ 1751.1Scgd ${DESTDIR}/root/.klogin; \ 1761.202Slukem ${INSTALL_FILE} -o root -g wheel -m 644 dot.login \ 1771.1Scgd ${DESTDIR}/root/.login; \ 1781.202Slukem ${INSTALL_FILE} -o root -g wheel -m 644 dot.profile \ 1791.1Scgd ${DESTDIR}/root/.profile; \ 1801.202Slukem ${INSTALL_FILE} -o root -g wheel -m 644 dot.shrc \ 1811.128Smycroft ${DESTDIR}/root/.shrc; \ 1821.189Sperry rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 1831.202Slukem ${INSTALL_LINK} ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 1841.202Slukem ${INSTALL_LINK} ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 1851.162Slukem (cd defaults; ${MAKE} install) 1861.83Smrg (cd mtree; ${MAKE} install) 1871.63Smikel (cd namedb; \ 1881.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \ 1891.124Ssimonb ${NAMEDB} ${DESTDIR}/etc/namedb) 1901.140Slukem (cd rc.d; ${MAKE} install) 1911.202Slukem ${INSTALL_SYMLINK} -o root -g wheel -m 755 \ 1921.188Sperry ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 1931.202Slukem ${INSTALL_SYMLINK} -o root -g wheel -m 755 \ 1941.188Sperry /usr/sbin/rmt ${DESTDIR}/etc/rmt 1951.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g operator -m 664 /dev/null \ 1961.32Sjtc ${DESTDIR}/etc/dumpdates 1971.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g operator -m 600 /dev/null \ 1981.44Sderaadt ${DESTDIR}/etc/skeykeys 1991.202Slukem ${INSTALL_FILE} -o root -g wheel -m 600 /dev/null \ 2001.127Sperry ${DESTDIR}/var/at/at.deny 2011.202Slukem ${INSTALL_FILE} -o root -g wheel -m 600 /dev/null \ 2021.38Scgd ${DESTDIR}/var/cron/log 2031.202Slukem ${INSTALL_FILE} -o nobody -g ${BINGRP} -m 664 /dev/null \ 2041.32Sjtc ${DESTDIR}/var/db/locate.database 2051.202Slukem ${INSTALL_FILE} -o uucp -g dialer -m 640 /dev/null \ 2061.113Sfair ${DESTDIR}/var/log/aculog 2071.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2081.69Sperry ${DESTDIR}/var/log/authlog 2091.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 2101.32Sjtc ${DESTDIR}/var/log/lastlog 2111.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 2121.32Sjtc ${DESTDIR}/var/log/lpd-errs 2131.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2141.32Sjtc ${DESTDIR}/var/log/maillog 2151.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 2161.32Sjtc ${DESTDIR}/var/log/messages 2171.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2181.58Slukem ${DESTDIR}/var/log/secure 2191.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 2201.137Smycroft ${DESTDIR}/var/log/sendmail.st 2211.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 2221.32Sjtc ${DESTDIR}/var/log/wtmp 2231.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2241.69Sperry ${DESTDIR}/var/log/xferlog 2251.202Slukem ${INSTALL_FILE} -o daemon -g staff -m 664 /dev/null \ 2261.39Scgd ${DESTDIR}/var/msgs/bounds 2271.202Slukem ${INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 2281.32Sjtc ${DESTDIR}/var/run/utmp 2291.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2301.81Smrg ${DESTDIR}/var/games/atc_scores 2311.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2321.81Smrg ${DESTDIR}/var/games/battlestar.log 2331.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2341.81Smrg ${DESTDIR}/var/games/cfscores 2351.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2361.82Sperry ${DESTDIR}/var/games/criblog 2371.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2381.81Smrg ${DESTDIR}/var/games/robots_roll 2391.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2401.81Smrg ${DESTDIR}/var/games/rogue.scores 2411.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2421.81Smrg ${DESTDIR}/var/games/saillog 2431.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2441.81Smrg ${DESTDIR}/var/games/snakerawscores 2451.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2461.81Smrg ${DESTDIR}/var/games/snake.log 2471.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2481.81Smrg ${DESTDIR}/var/games/tetris.scores 2491.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2501.81Smrg ${DESTDIR}/var/games/larn/llog12.0 2511.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2521.81Smrg ${DESTDIR}/var/games/larn/lscore12.0 2531.202Slukem ${INSTALL_FILE} -o games -g games -m 664 /dev/null \ 2541.81Smrg ${DESTDIR}/var/games/larn/playerids 2551.202Slukem (cd etc.${MACHINE}; ${INSTALL_FILE} -o ${BINOWN} \ 2561.124Ssimonb -g ${BINGRP} -m 444 fstab.* ${DESTDIR}/etc) 2571.165Ssimonb (cd skel; ${MAKE} distribution) 2581.62Sperry (cd ../usr.bin/mail; ${MAKE} distribution) 2591.143Sperry (cd ../gnu/usr.sbin/postfix/; ${MAKE} distribution) 2601.155Sthorpej.if (${MKCRYPTO} != "no") 2611.155Sthorpej (cd ../usr.bin/ssh; ${MAKE} distribution) 2621.155Sthorpej.endif 2631.200Slukem.if !defined(NO_SENDMAIL) 2641.133Stron (cd ../gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 2651.90Skim.endif 2661.1Scgd 2671.204Slukemdistrib-dirs: check_DESTDIR 2681.202Slukem ${INSTALL_DIR} -o root -g wheel -m 755 ${DESTDIR} 2691.192Sperry ${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U ${UNPRIVED:D-W} 2701.189Sperry rm -f ${DESTDIR}/sys 2711.202Slukem ${INSTALL_SYMLINK} -o root -g wheel -m 755 usr/src/sys ${DESTDIR}/sys 2721.200Slukem 2731.204Slukemrelease snapshot: check_DESTDIR check_RELEASEDIR .WAIT \ 2741.202Slukem distribution snap_pre snap_md_pre snap_kern snap_md_post 2751.141Sthorpej (cd ../distrib/sets; ${MAKE} sets) 2761.206Sbjh21 ${MAKESUMS} -t ${RELEASEDIR}/binary/kernel '*.gz' 2771.161Shubertf 2781.161Shubertf# Standalone target to create a CDROM image after the release 2791.161Shubertf# was composed. Should be run after "make build" in both src and xsrc 2801.204Slukemiso-image: check_DESTDIR check_RELEASEDIR .WAIT iso-image_md_post 2811.161Shubertf 2821.204Slukemiso-image_mi: check_DESTDIR check_RELEASEDIR .WAIT iso-image_md_pre 2831.161Shubertf @if ${MKISOFS} --version; then \ 2841.161Shubertf mkdir -p ${RELEASEDIR}/installation/cdrom ; \ 2851.161Shubertf ${MKISOFS} ${MKISOFS_FLAGS} \ 2861.161Shubertf -o ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \ 2871.161Shubertf ${RELEASEDIR} ; \ 2881.206Sbjh21 ${MAKESUMS} -t ${RELEASEDIR}/installation/cdrom '*.iso' ; \ 2891.161Shubertf else \ 2901.161Shubertf echo "install pkgsrc/sysutils/cdrecord and type 'make iso-image'." ; \ 2911.161Shubertf fi 2921.161Shubertf 2931.161Shubertf# Setup the $RELEASEDIR to produce a bootable CD image: 2941.204Slukemiso-image_md_pre: check_DESTDIR check_RELEASEDIR 2951.161Shubertf# nothing here -- look in the machine-dependent Makefile.inc 2961.161Shubertf 2971.161Shubertf# Fixup the CD-image to be bootable 2981.204Slukemiso-image_md_post: check_DESTDIR check_RELEASEDIR .WAIT iso-image_mi 2991.161Shubertf# nothing here -- look in the machine-dependent Makefile.inc 3001.41Scgd 3011.204Slukemsnap_pre: check_DESTDIR check_RELEASEDIR 3021.168Sjmc# Could be a mount point, ignore the errors 3031.167Sjmc -/bin/rm -rf ${RELEASEDIR} 3041.202Slukem ${INSTALL} -d -m 755 ${RELEASEDIR} 3051.117Ssimonb.for dir in ${INSTALLATION_DIRS} 3061.202Slukem ${INSTALL} -d -m 755 ${RELEASEDIR}/${dir} 3071.117Ssimonb.endfor 3081.96Scjs 3091.196Sthorpej# This target builds the kernels specified by each port. A port may 3101.196Sthorpej# specify the following kernels: 3111.196Sthorpej# 3121.196Sthorpej# KERNEL_SETS The list of kernels that will be 3131.196Sthorpej# packaged into sets, named 3141.196Sthorpej# kern-${kernel}.tgz. These kernels 3151.203Schs# are also placed in the binary/kernel 3161.196Sthorpej# area of the release package as 3171.196Sthorpej# netbsd-${kernel}.gz. 3181.196Sthorpej# 3191.196Sthorpej# EXTRA_KERNELS Additional kernels to place in the 3201.203Schs# binary/kernel area of the release 3211.196Sthorpej# package as netbsd-${kernel}.gz, but 3221.196Sthorpej# which are not placed into sets. This 3231.196Sthorpej# allows a port to provide e.g. a netbootable 3241.196Sthorpej# installation kernel containing a ramdisk. 3251.196Sthorpej# 3261.196Sthorpej# BUILD_KERNELS Additional kernels to build which are 3271.196Sthorpej# not placed into sets nor into the 3281.203Schs# binary/kernel area of the release 3291.196Sthorpej# package. These are typically kernels 3301.196Sthorpej# that are built for inclusion only in 3311.196Sthorpej# installation disk/CD-ROM/tape images. 3321.116Sfair# 3331.197Sthorpej# A port may also specify KERNEL_SUFFIXES, which is an optional list 3341.197Sthorpej# of filename suffixes for kernels to include in the kernel sets and 3351.203Schs# in the binary/kernel area of the release package (e.g. "netbsd" vs. 3361.197Sthorpej# "netbsd.ecoff" and "netbsd.srec"). It is not an error if kernels 3371.197Sthorpej# with these suffixes do not exist in the kernel build directory. 3381.197Sthorpej# 3391.116SfairGETKERNELAWK= awk '/^config/ {print $$2; found=1} \ 3401.116Sfair END{ if (found == 0) print "netbsd"; }' 3411.96Scjs# 3421.118Sgwr.if !target(snap_kern) 3431.204Slukemsnap_kern: check_DESTDIR check_RELEASEDIR 3441.201Slukem.if !defined(KERNELS_DONE) # { 3451.196Sthorpej.for configfile in ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS} 3461.125Ssommerfe cd ${KERNCONFDIR} && ${CONFIG} \ 3471.179Smrg -b ${KERNOBJDIR}/${configfile:C/.*\///} -s ${KERNSRCDIR} ${configfile} 3481.201Slukem.if !defined(UPDATE) 3491.200Slukem cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} distclean 3501.96Scjs.endif 3511.179Smrg cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} depend && ${MAKE} ${_J} 3521.196Sthorpej.endfor # build kernels 3531.203Schs.endif # KERNELS_DONE # } 3541.196Sthorpej.for configfile in ${KERNEL_SETS} 3551.197Sthorpej kernlist=`${GETKERNELAWK} ${KERNCONFDIR}/${configfile}`; \ 3561.197Sthorpej kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \ 3571.207Sbjh21 kernsuffixes="${KERNEL_SUFFIXES}"; \ 3581.210Slukem cd $${kerndir} && ( \ 3591.210Slukem echo ". type=dir uname=root gname=wheel"; \ 3601.210Slukem for kernel in $${kernlist}; do \ 3611.210Slukem echo "./$${kernel} type=file uname=root gname=wheel"; \ 3621.207Sbjh21 for s in $${kernsuffixes}; do \ 3631.197Sthorpej if [ -f $${kernel}.$${s} ]; then \ 3641.210Slukem echo \ 3651.210Slukem "./$${kernel}.$${s} type=file uname=root gname=wheel"; \ 3661.197Sthorpej fi; \ 3671.197Sthorpej done; \ 3681.210Slukem done ) | GZIP=-9 ${PAX} -zwM \ 3691.210Slukem -f ${RELEASEDIR}/binary/sets/kern-${configfile}.tgz 3701.196Sthorpej.endfor # make kernel sets 3711.196Sthorpej.for configfile in ${KERNEL_SETS} ${EXTRA_KERNELS} 3721.197Sthorpej kernlist=`${GETKERNELAWK} ${KERNCONFDIR}/${configfile:C/.*\///}`; \ 3731.197Sthorpej kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \ 3741.207Sbjh21 kernsuffixes="${KERNEL_SUFFIXES}"; \ 3751.197Sthorpej cd $${kerndir} && \ 3761.197Sthorpej gziplist=`for kernel in $${kernlist}; do \ 3771.197Sthorpej echo "$${kernel}"; \ 3781.207Sbjh21 for s in $${kernsuffixes}; do \ 3791.197Sthorpej if [ -f $${kernel}.$${s} ]; then \ 3801.197Sthorpej echo "$${kernel}.$${s}"; \ 3811.197Sthorpej fi; \ 3821.197Sthorpej done; \ 3831.197Sthorpej done`; \ 3841.197Sthorpej for kernel in $${gziplist} ; do \ 3851.114Sfair gzip -c -9 < $${kernel} > \ 3861.201Slukem ${RELEASEDIR}/binary/kernel/$${kernel}-${configfile:C/.*\///}.gz ; done 3871.196Sthorpej.endfor # place KERNEL_SETS kernels + EXTRA_KERNELS in binary/kernel/... 3881.118Sgwr.endif # no target(snap_kern) 3891.108Sdrochner 3901.204Slukemsnap_md_pre: check_DESTDIR check_RELEASEDIR 3911.117Ssimonb# nothing here -- look in the machine-dependent Makefile.inc 3921.117Ssimonb 3931.204Slukemsnap_md_post: check_DESTDIR check_RELEASEDIR 3941.41Scgd# nothing here -- look in the machine-dependent Makefile.inc 3951.7Scgd 3961.1Scgd.include <bsd.prog.mk> 397