Makefile revision 1.170
11.170Sjdolecek# $NetBSD: Makefile,v 1.170 2000/11/09 20:01:54 jdolecek 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.96Scjs# ${KERNSRCDIR}/arch/${MACHINE}/compile/KERNELNAME, but can be 161.96Scjs# overridden. 171.96Scjs# KERNCONFDIR is where the configuration files for kernels are found; 181.96Scjs# default is ${KERNSRCDIR}/arch/${MACHINE}/conf but can be overridden. 191.97Scjs# UPDATE is normally undefined; if defined, don't do a 'make clean' 201.97Scjs# before kernel compile 211.96Scjs# NO_SENDMAIL is normally undefined; if defined, it will not do a 221.96Scjs# `make distribution' in the sendmail config file source directory. 231.96Scjs# EXTRA_KERNELS has a machine-dependent list of kernels to build added 241.96Scjs# to it, but you may also set this to have extra ones built. 251.119Sross# BUILD_KERNELS are a machine-dependent list of kernels that should just 261.119Sross# be built in place but not made into sets or installed, e.g., an 271.119Sross# INSTALL kernel used later in src/distrib/. 281.154Sthorpej# 291.96Scjs# Targets: 301.96Scjs# distribution: makes a full NetBSD distribution in DESTDIR. If 311.96Scjs# INSTALL_DONE is set, it will not do a `make install.' 321.96Scjs# distrib-dirs: creates an empty NetBSD directory tree in DESTDIR. 331.96Scjs# Called by distribution. 341.96Scjs# snapshot: calls distribution, above, and then tars up the files 351.96Scjs# into a release(7) format in RELEASEDIR. Any port-dependent 361.96Scjs# stuff for this target is found in etc.${MACHINE}/Makefile.inc. 371.106Scjs# release: a synonym for `snapshot' 381.96Scjs 391.149Ssjg# do this before bsd.own.mk so we get correct KERNSRCDIR 401.145Ssjg.include "../Makefile.inc" 411.145Ssjg 421.155Sthorpej# For NO_SENDMAIL, INSTPRIV, MKCRYPTO 431.90Skim.include <bsd.own.mk> 441.90Skim 451.23ScgdTZDIR= /usr/share/zoneinfo 461.157SkleinkLOCALTIME?= UTC 471.19Sderaadt 481.161Shubertf# Flags for creating ISO CDROM image 491.161Shubertf# mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrecord 501.161ShubertfMKISOFS?= mkisofs 511.161ShubertfMKISOFS_FLAGS+= -J -l \ 521.161Shubertf -r -T -v \ 531.161Shubertf -P "The NetBSD Project" \ 541.164Shubertf -m "${RELEASEDIR}/installation/cdrom" 551.161Shubertf 561.55Sperry# setting NOOBJ prevents "make obj" from doing anything; 571.55Sperry# an objdir would break the installation stuff below 581.101SlukemMKOBJ= no 591.1Scgd 601.80Sjonathan# MD Makefile.inc may append MD targets to BIN[123]. Make sure all 611.80Sjonathan# are empty, to preserve the old semantics of setting them below with "=". 621.80SjonathanBIN1= 631.80SjonathanBIN2= 641.80SjonathanBIN3= 651.80Sjonathan 661.117Ssimonb# Directories to build in ${RELEASEDIR}. MD Makefile.inc files can 671.117Ssimonb# add to this. 681.117Ssimonb# NOTE: Parent directories must be listed before subdirectories. 691.117SsimonbINSTALLATION_DIRS= \ 701.158Sfvdl binary binary/sets binary/kernel installation 711.117Ssimonb 721.71Scjs.if exists(etc.${MACHINE}/Makefile.inc) 731.71Scjs.include "etc.${MACHINE}/Makefile.inc" 741.71Scjs.endif 751.32Sjtc 761.96Scjs# Use multiple jobs for kernel builds, if NBUILDJOBS set. 771.96Scjs# (Taken from src/Makefile.) 781.96Scjs.if defined(NBUILDJOBS) 791.96Scjs_J= -j${NBUILDJOBS} 801.96Scjs.endif 811.96Scjs 821.21Scgd# -rw-r--r-- 831.21ScgdBINOWN= root 841.21ScgdBINGRP= wheel 851.131SveegoBIN1+= bootptab changelist csh.cshrc csh.login csh.logout daily \ 861.131Sveego daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 871.131Sveego gettytab group hosts hosts.lpd inetd.conf lkm.conf \ 881.131Sveego mailer.conf man.conf monthly monthly.conf mrouted.conf \ 891.151Sfvdl netconfig networks newsyslog.conf nsswitch.conf ntp.conf \ 901.131Sveego phones printcap profile protocols rbootd.conf rc rc.conf \ 911.159Slukem rc.lkm rc.local rc.subr rc.shutdown remote rpc \ 921.142Stsarna security security.conf services shells sysctl.conf syslog.conf \ 931.142Stsarna weekly weekly.conf wscons.conf \ 941.109Sdrochner etc.${MACHINE}/ttys etc.${MACHINE}/disktab 951.105Smycroft 961.121Sfvdl.if (${MACHINE_ARCH} == "m68k") || \ 971.105Smycroft (${MACHINE_ARCH} == "ns32k") || \ 981.105Smycroft (${MACHINE_ARCH} == "vax") || \ 991.105Smycroft (${MACHINE_ARCH} == "arm32") 1001.129SchristosBIN1+= ld.so.conf 1011.129Schristos.elif exists(etc.${MACHINE_ARCH}/ld.so.conf) 1021.132SjlamBIN1+= etc.${MACHINE_ARCH}/ld.so.conf 1031.152Sperry.endif 1041.152Sperry 1051.152Sperry.if exists(etc.${MACHINE_ARCH}/ttyaction) 1061.152SperryBIN1+= etc.${MACHINE_ARCH}/ttyaction 1071.105Smycroft.endif 1081.120Sitojun 1091.120Sitojun# IPv6 1101.120SitojunBIN1+= rtadvd.conf 1111.1Scgd 1121.46Sderaadt# -rw-rw-r-- 1131.80SjonathanBIN2+= motd 1141.1Scgd 1151.77Smycroft# -rw------- 1161.80SjonathanBIN3+= hosts.equiv 1171.77Smycroft 1181.144SthorpejNAMEDB= 127 root.cache named.conf localhost loopback.v6 1191.1ScgdPCS= pcs750.bin 1201.1Scgd 1211.170Sjdolecek# find out endianness of target and set proper flag for pwd_mkdb so that 1221.170Sjdolecek# it creates database in same endianness 1231.170Sjdolecek.if exists(${DESTDIR}/usr/include/machine/endian_machdep.h) 1241.170SjdolecekTARGET_ENDIANNESS!= awk '/_BYTE_ORDER/{print $$3}' \ 1251.170Sjdolecek ${DESTDIR}/usr/include/machine/endian_machdep.h 1261.170Sjdolecek.else 1271.170SjdolecekTARGET_ENDIANNESS= 1281.170Sjdolecek.endif 1291.170Sjdolecek 1301.170Sjdolecek.if ${TARGET_ENDIANNESS} == "_LITTLE_ENDIAN" 1311.170SjdolecekTARGET_ENDIANNESS= -L 1321.170Sjdolecek.elif ${TARGET_ENDIANNESS} == "_BIG_ENDIAN" 1331.170SjdolecekTARGET_ENDIANNESS= -B 1341.170Sjdolecek.else 1351.170SjdolecekTARGET_ENDIANNESS= 1361.170Sjdolecek.endif 1371.170Sjdolecek 1381.88Slukemall clean cleandir depend distclean etc includes install lint: 1391.1Scgd 1401.170Sjdolecek 1411.149Ssjg.include <bsd.kernobj.mk> 1421.149Ssjg 1431.149Ssjgobj: 1441.149Ssjg mkdir -p ${KERNOBJDIR} 1451.149Ssjg 1461.34Scgd.ifndef DESTDIR 1471.161Shubertfdistribution distrib-dirs release snapshot snap_pre snap_md_pre \ 1481.161Shubertfsnap_md_post iso-image: 1491.36Scgd @echo setenv DESTDIR before doing that! 1501.34Scgd @false 1511.34Scgd.else 1521.7Scgddistribution: distrib-dirs 1531.87Sperry.if !defined(INSTALL_DONE) 1541.107Sscottr (cd ..; ${MAKE} _DISTRIB= includes) 1551.107Sscottr (cd ..; ${MAKE} _DISTRIB= install) 1561.87Sperry.endif 1571.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} \ 1581.124Ssimonb ${DESTDIR}/etc 1591.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} \ 1601.124Ssimonb ${DESTDIR}/etc 1611.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} \ 1621.124Ssimonb ${DESTDIR}/etc 1631.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 aliases \ 1641.147Sitojun ${DESTDIR}/etc/mail 1651.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 crontab \ 1661.56Sthorpej ${DESTDIR}/var/cron/tabs/root 1671.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 master.passwd \ 1681.124Ssimonb ${DESTDIR}/etc 1691.170Sjdolecek pwd_mkdb -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 1701.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 1711.1Scgd MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 1721.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 minfree \ 1731.73Sperry ${DESTDIR}/var/crash 1741.1Scgd (cd root; \ 1751.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.cshrc \ 1761.1Scgd ${DESTDIR}/root/.cshrc; \ 1771.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 dot.klogin \ 1781.1Scgd ${DESTDIR}/root/.klogin; \ 1791.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.login \ 1801.1Scgd ${DESTDIR}/root/.login; \ 1811.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.profile \ 1821.1Scgd ${DESTDIR}/root/.profile; \ 1831.128Smycroft ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.shrc \ 1841.128Smycroft ${DESTDIR}/root/.shrc; \ 1851.1Scgd rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 1861.1Scgd ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 1871.1Scgd ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 1881.162Slukem (cd defaults; ${MAKE} install) 1891.83Smrg (cd mtree; ${MAKE} install) 1901.63Smikel (cd namedb; \ 1911.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1921.124Ssimonb ${NAMEDB} ${DESTDIR}/etc/namedb) 1931.140Slukem (cd rc.d; ${MAKE} install) 1941.19Sderaadt /bin/rm -f ${DESTDIR}/etc/localtime 1951.19Sderaadt ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 1961.48Sderaadt /bin/rm -f ${DESTDIR}/etc/rmt 1971.48Sderaadt ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 1981.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 1991.32Sjtc ${DESTDIR}/etc/dumpdates 2001.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g operator -m 600 /dev/null \ 2011.44Sderaadt ${DESTDIR}/etc/skeykeys 2021.127Sperry ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 /dev/null \ 2031.127Sperry ${DESTDIR}/var/at/at.deny 2041.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 /dev/null \ 2051.38Scgd ${DESTDIR}/var/cron/log 2061.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 2071.32Sjtc ${DESTDIR}/var/db/locate.database 2081.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o uucp -g dialer -m 640 /dev/null \ 2091.113Sfair ${DESTDIR}/var/log/aculog 2101.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2111.69Sperry ${DESTDIR}/var/log/authlog 2121.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 2131.32Sjtc ${DESTDIR}/var/log/lastlog 2141.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 2151.32Sjtc ${DESTDIR}/var/log/lpd-errs 2161.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2171.32Sjtc ${DESTDIR}/var/log/maillog 2181.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 2191.32Sjtc ${DESTDIR}/var/log/messages 2201.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2211.58Slukem ${DESTDIR}/var/log/secure 2221.137Smycroft ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 2231.137Smycroft ${DESTDIR}/var/log/sendmail.st 2241.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 2251.32Sjtc ${DESTDIR}/var/log/wtmp 2261.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 2271.69Sperry ${DESTDIR}/var/log/xferlog 2281.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o daemon -g staff -m 664 /dev/null \ 2291.39Scgd ${DESTDIR}/var/msgs/bounds 2301.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 2311.32Sjtc ${DESTDIR}/var/run/utmp 2321.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2331.81Smrg ${DESTDIR}/var/games/atc_scores 2341.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2351.81Smrg ${DESTDIR}/var/games/battlestar.log 2361.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2371.81Smrg ${DESTDIR}/var/games/cfscores 2381.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2391.82Sperry ${DESTDIR}/var/games/criblog 2401.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2411.81Smrg ${DESTDIR}/var/games/robots_roll 2421.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2431.81Smrg ${DESTDIR}/var/games/rogue.scores 2441.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2451.81Smrg ${DESTDIR}/var/games/saillog 2461.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2471.81Smrg ${DESTDIR}/var/games/snakerawscores 2481.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2491.81Smrg ${DESTDIR}/var/games/snake.log 2501.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2511.81Smrg ${DESTDIR}/var/games/tetris.scores 2521.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2531.81Smrg ${DESTDIR}/var/games/larn/llog12.0 2541.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2551.81Smrg ${DESTDIR}/var/games/larn/lscore12.0 2561.124Ssimonb ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \ 2571.81Smrg ${DESTDIR}/var/games/larn/playerids 2581.124Ssimonb (cd etc.${MACHINE}; ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} \ 2591.124Ssimonb -g ${BINGRP} -m 444 fstab.* ${DESTDIR}/etc) 2601.49Stls (cd ${DESTDIR}/dev; ./MAKEDEV all) 2611.165Ssimonb (cd skel; ${MAKE} distribution) 2621.62Sperry (cd ../usr.bin/mail; ${MAKE} distribution) 2631.163Sthorpej (cd ../usr.bin/ssh; ${MAKE} distribution) 2641.143Sperry (cd ../gnu/usr.sbin/postfix/; ${MAKE} distribution) 2651.155Sthorpej.if (${MKCRYPTO} != "no") 2661.155Sthorpej (cd ../usr.bin/ssh; ${MAKE} distribution) 2671.155Sthorpej.endif 2681.90Skim.ifndef NO_SENDMAIL 2691.133Stron (cd ../gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 2701.90Skim.endif 2711.1Scgd 2721.7Scgddistrib-dirs: 2731.124Ssimonb ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR} 2741.67Sperry -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 2751.28Sjtc cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 2761.99Scjs 2771.96Scjs.if !defined(RELEASEDIR) 2781.161Shubertfrelease snapshot snap_pre snap_md_pre snap_md_post iso-image: 2791.96Scjs @echo setenv RELEASEDIR before doing that! 2801.96Scjs @false 2811.96Scjs.else 2821.117Ssimonbrelease snapshot: distribution snap_pre snap_md_pre snap_kern snap_md_post 2831.141Sthorpej (cd ../distrib/sets; ${MAKE} sets) 2841.123Sis sh ../distrib/sets/makesums -t ${RELEASEDIR}/binary/kernel '*.gz' 2851.161Shubertf 2861.161Shubertf# Standalone target to create a CDROM image after the release 2871.161Shubertf# was composed. Should be run after "make build" in both src and xsrc 2881.161Shubertfiso-image: iso-image_md_post 2891.161Shubertf 2901.161Shubertfiso-image_mi: iso-image_md_pre 2911.161Shubertf @if ${MKISOFS} --version; then \ 2921.161Shubertf mkdir -p ${RELEASEDIR}/installation/cdrom ; \ 2931.161Shubertf ${MKISOFS} ${MKISOFS_FLAGS} \ 2941.161Shubertf -o ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \ 2951.161Shubertf ${RELEASEDIR} ; \ 2961.161Shubertf sh ../distrib/sets/makesums -t ${RELEASEDIR}/installation/cdrom '*.iso' ; \ 2971.161Shubertf else \ 2981.161Shubertf echo "install pkgsrc/sysutils/cdrecord and type 'make iso-image'." ; \ 2991.161Shubertf fi 3001.161Shubertf 3011.161Shubertf# Setup the $RELEASEDIR to produce a bootable CD image: 3021.161Shubertfiso-image_md_pre: 3031.161Shubertf# nothing here -- look in the machine-dependent Makefile.inc 3041.161Shubertf 3051.161Shubertf# Fixup the CD-image to be bootable 3061.161Shubertfiso-image_md_post: iso-image_mi 3071.161Shubertf# nothing here -- look in the machine-dependent Makefile.inc 3081.41Scgd 3091.41Scgdsnap_pre: 3101.168Sjmc# Could be a mount point, ignore the errors 3111.167Sjmc -/bin/rm -rf ${RELEASEDIR} 3121.124Ssimonb ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR} 3131.117Ssimonb.for dir in ${INSTALLATION_DIRS} 3141.124Ssimonb ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}/${dir} 3151.117Ssimonb.endfor 3161.96Scjs 3171.96Scjs 3181.96Scjs# This target builds the GENERIC kernel (which must exist for all 3191.96Scjs# ports) and puts it in binary/sets/kern.tgz, and also builds any 3201.114Sfair# kernels specified in EXTRA_KERNELS. Since NetBSD's kernel build 3211.114Sfair# system can create more than one kernel from a single configuration 3221.114Sfair# we figure out how many there are, what they're named, and move them 3231.114Sfair# to binary/kernel/${KERNEL}.${CONFIGFILE}.gz - most often KERNEL will 3241.116Sfair# simply be "netbsd". If we don't find the "config" line, assume the 3251.116Sfair# kernel will be "netbsd" (some config files are simple additions on 3261.116Sfair# GENERIC, and just include it). 3271.116Sfair# 3281.116SfairGETKERNELAWK= awk '/^config/ {print $$2; found=1} \ 3291.116Sfair END{ if (found == 0) print "netbsd"; }' 3301.96Scjs# 3311.118Sgwr.if !target(snap_kern) 3321.96Scjssnap_kern: 3331.145Ssjg.ifndef KERNELS_DONE 3341.135Smycroft.for configfile in GENERIC ${EXTRA_KERNELS} ${BUILD_KERNELS} 3351.125Ssommerfe cd ${KERNCONFDIR} && ${CONFIG} \ 3361.135Smycroft -b ${KERNOBJDIR}/${configfile} -s ${KERNSRCDIR} ${configfile} 3371.97Scjs.ifndef UPDATE 3381.166Sgarbled cd ${KERNOBJDIR}/${configfile} && ${MAKE} distclean 3391.96Scjs.endif 3401.135Smycroft cd ${KERNOBJDIR}/${configfile} && ${MAKE} depend && ${MAKE} ${_J} 3411.135Smycroft.endfor # kernels 3421.96Scjs cd ${KERNOBJDIR}/GENERIC && \ 3431.116Sfair tar cf - `${GETKERNELAWK} ${KERNCONFDIR}/GENERIC` |\ 3441.96Scjs gzip -c -9 > ${RELEASEDIR}/binary/sets/kern.tgz 3451.135Smycroft.for configfile in GENERIC ${EXTRA_KERNELS} 3461.114Sfair cd ${KERNOBJDIR}/${configfile} && \ 3471.116Sfair for kernel in `${GETKERNELAWK} \ 3481.114Sfair ${KERNCONFDIR}/${configfile}` ; { \ 3491.114Sfair gzip -c -9 < $${kernel} > \ 3501.114Sfair ${RELEASEDIR}/binary/kernel/$${kernel}.${configfile}.gz ; } 3511.96Scjs.endfor # EXTRA_KERNELS 3521.145Ssjg.endif # KERNELS_DONE 3531.118Sgwr.endif # no target(snap_kern) 3541.108Sdrochner 3551.96Scjs.endif # RELEASEDIR check 3561.41Scgd 3571.117Ssimonbsnap_md_pre: 3581.117Ssimonb# nothing here -- look in the machine-dependent Makefile.inc 3591.117Ssimonb 3601.117Ssimonbsnap_md_post: 3611.41Scgd# nothing here -- look in the machine-dependent Makefile.inc 3621.41Scgd 3631.34Scgd.endif # DESTDIR check 3641.7Scgd 3651.1Scgd.include <bsd.prog.mk> 366