Annotation of src/etc/Makefile, Revision 1.230
1.230 ! perry 1: # $NetBSD: Makefile,v 1.229 2002/10/16 02:30:48 lukem Exp $
1.66 mikel 2: # from: @(#)Makefile 8.7 (Berkeley) 5/25/95
1.1 cgd 3:
1.96 cjs 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
1.172 jlam 15: # ${KERNSRCDIR}/arch/${MACHINE}/compile, but can be overridden.
1.96 cjs 16: # KERNCONFDIR is where the configuration files for kernels are found;
17: # default is ${KERNSRCDIR}/arch/${MACHINE}/conf but can be overridden.
1.97 cjs 18: # UPDATE is normally undefined; if defined, don't do a 'make clean'
19: # before kernel compile
1.96 cjs 20: # NO_SENDMAIL is normally undefined; if defined, it will not do a
21: # `make distribution' in the sendmail config file source directory.
1.154 thorpej 22: #
1.96 cjs 23: # Targets:
24: # distribution: makes a full NetBSD distribution in DESTDIR. If
25: # INSTALL_DONE is set, it will not do a `make install.'
1.182 chs 26: # if DISTRIBUTION_DONE is set, it will not do anything.
1.96 cjs 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. Any port-dependent
31: # stuff for this target is found in etc.${MACHINE}/Makefile.inc.
1.106 cjs 32: # release: a synonym for `snapshot'
1.96 cjs 33:
1.199 tv 34: # setting NOOBJ prevents "make obj" from doing anything;
35: # an objdir would break the installation stuff below
36: NOOBJ= # defined
37:
1.155 thorpej 38: # For NO_SENDMAIL, INSTPRIV, MKCRYPTO
1.90 kim 39: .include <bsd.own.mk>
1.187 jmc 40:
1.211 lukem 41: # For KERNSRCDIR, KERNOBJDIR, ...
42: .include <bsd.kernobj.mk>
43:
44:
1.187 jmc 45: .MAKEOVERRIDES+= USETOOLS
1.90 kim 46:
1.23 cgd 47: TZDIR= /usr/share/zoneinfo
1.157 kleink 48: LOCALTIME?= UTC
1.198 jmc 49: PWD_MKDB?= pwd_mkdb
1.206 bjh21 50: MAKESUMS= CKSUM=${CKSUM:Q} sh ../distrib/sets/makesums
1.19 deraadt 51:
1.161 hubertf 52: # Flags for creating ISO CDROM image
53: # mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrecord
54: MKISOFS?= mkisofs
1.224 bjh21 55: DISTRIBREV!= sh ${NETBSDSRCDIR}/sys/conf/osrelease.sh -s
56: # ISO 9660 volume ID. Note that this can only contain [A-Z0-9_].
57: ISO_VOLID!= echo NETBSD_${MACHINE}_${DISTRIBREV} | tr a-z A-Z
1.161 hubertf 58: MKISOFS_FLAGS+= -J -l \
59: -r -T -v \
1.224 bjh21 60: -V ${ISO_VOLID} \
1.161 hubertf 61: -P "The NetBSD Project" \
1.164 hubertf 62: -m "${RELEASEDIR}/installation/cdrom"
1.1 cgd 63:
1.80 jonathan 64: # MD Makefile.inc may append MD targets to BIN[123]. Make sure all
65: # are empty, to preserve the old semantics of setting them below with "=".
1.200 lukem 66: BIN1=
1.80 jonathan 67: BIN2=
68: BIN3=
69:
1.117 simonb 70: # Directories to build in ${RELEASEDIR}. MD Makefile.inc files can
71: # add to this.
72: # NOTE: Parent directories must be listed before subdirectories.
1.217 lukem 73: INSTALLATION_DIRS= binary binary/sets binary/kernel installation
1.117 simonb 74:
1.71 cjs 75: .if exists(etc.${MACHINE}/Makefile.inc)
76: .include "etc.${MACHINE}/Makefile.inc"
77: .endif
1.32 jtc 78:
1.21 cgd 79: # -rw-r--r--
80: BINOWN= root
81: BINGRP= wheel
1.227 perry 82: UTMPGRP= utmp
1.184 lukem 83: BIN1+= bootptab changelist csh.cshrc csh.login csh.logout daily \
1.223 fredette 84: daily.conf dm.conf floppytab ftpchroot ftpusers \
1.131 veego 85: gettytab group hosts hosts.lpd inetd.conf lkm.conf \
86: mailer.conf man.conf monthly monthly.conf mrouted.conf \
1.151 fvdl 87: netconfig networks newsyslog.conf nsswitch.conf ntp.conf \
1.213 perry 88: passwd.conf phones printcap profile protocols rbootd.conf rc rc.conf \
1.159 lukem 89: rc.lkm rc.local rc.subr rc.shutdown remote rpc \
1.142 tsarna 90: security security.conf services shells sysctl.conf syslog.conf \
91: weekly weekly.conf wscons.conf \
1.109 drochner 92: etc.${MACHINE}/ttys etc.${MACHINE}/disktab
1.105 mycroft 93:
1.121 fvdl 94: .if (${MACHINE_ARCH} == "m68k") || \
1.105 mycroft 95: (${MACHINE_ARCH} == "ns32k") || \
1.208 wiz 96: (${MACHINE_ARCH} == "vax")
1.129 christos 97: BIN1+= ld.so.conf
98: .elif exists(etc.${MACHINE_ARCH}/ld.so.conf)
1.132 jlam 99: BIN1+= etc.${MACHINE_ARCH}/ld.so.conf
1.152 perry 100: .endif
101:
102: .if exists(etc.${MACHINE_ARCH}/ttyaction)
103: BIN1+= etc.${MACHINE_ARCH}/ttyaction
1.105 mycroft 104: .endif
1.1 cgd 105:
1.46 deraadt 106: # -rw-rw-r--
1.80 jonathan 107: BIN2+= motd
1.1 cgd 108:
1.77 mycroft 109: # -rw-------
1.80 jonathan 110: BIN3+= hosts.equiv
1.77 mycroft 111:
1.230 ! perry 112: ETC_PKG=-T etc_pkg
! 113: BASE_PKG=-T base_pkg
! 114: ETC_INSTALL_FILE=${INSTALL_FILE} ${ETC_PKG}
! 115: ETC_INSTALL_LINK=${INSTALL_LINK} ${ETC_PKG}
! 116: ETC_INSTALL_SYMLINK=${INSTALL_SYMLINK} ${ETC_PKG}
! 117:
1.144 thorpej 118: NAMEDB= 127 root.cache named.conf localhost loopback.v6
1.1 cgd 119:
1.220 itojun 120: .if make(install-etc-files) # {
1.221 itojun 121: .include <bsd.endian.mk>
1.191 tv 122: .if ${TARGET_ENDIANNESS} == "1234"
1.221 itojun 123: TARGET_ENDIANNESS= -L
1.191 tv 124: .elif ${TARGET_ENDIANNESS} == "4321"
1.221 itojun 125: TARGET_ENDIANNESS= -B
1.170 jdolecek 126: .else
127: TARGET_ENDIANNESS=
1.191 tv 128: .endif
1.220 itojun 129: .endif # install-etc-files # }
1.149 sjg 130:
131: obj:
132: mkdir -p ${KERNOBJDIR}
133:
1.204 lukem 134: distribution: check_DESTDIR .WAIT distrib-dirs
1.182 chs 135: .if !defined(DISTRIBUTION_DONE)
1.87 perry 136: .if !defined(INSTALL_DONE)
1.107 scottr 137: (cd ..; ${MAKE} _DISTRIB= includes)
138: (cd ..; ${MAKE} _DISTRIB= install)
1.200 lukem 139: .endif # !INSTALL_DONE
1.193 thorpej 140: ${MAKE} install-etc-files
1.200 lukem 141: .endif # !DISTRIBUTION_DONE
1.193 thorpej 142:
1.204 lukem 143: install-etc-files: check_DESTDIR
1.230 ! perry 144: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 145: ${BIN1} ${DESTDIR}/etc
! 146: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 \
! 147: ${BIN2} ${DESTDIR}/etc
! 148: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
! 149: ${BIN3} ${DESTDIR}/etc
! 150: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 151: aliases ${DESTDIR}/etc/mail
! 152: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 153: /dev/null ${DESTDIR}/etc/mail/local-host-names
! 154: ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
! 155: crontab ${DESTDIR}/var/cron/tabs/root
! 156: ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
! 157: master.passwd ${DESTDIR}/etc
1.198 jmc 158: ${PWD_MKDB} -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ \
1.230 ! perry 159: ${DESTDIR}/etc/master.passwd
1.194 perry 160: .if defined(UNPRIVED)
1.222 lukem 161: ( \
1.230 ! perry 162: echo "/etc/passwd type=file mode=0644 uname=root gname=wheel tags=etc_pkg"; \
! 163: echo "/etc/pwd.db type=file mode=0644 uname=root gname=wheel tags=etc_pkg"; \
! 164: echo "/etc/spwd.db type=file mode=0600 uname=root gname=wheel tags=etc_pkg"; \
1.222 lukem 165: ) | \
166: sed -e "s|^/|./${DESTDIR}/|g" -e "s|//|/|g" | ${CAT} -l >>${METALOG}
1.200 lukem 167: .endif # UNPRIVED
1.230 ! perry 168: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 555 \
! 169: MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
! 170: ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
! 171: minfree ${DESTDIR}/var/crash
1.1 cgd 172: (cd root; \
1.230 ! perry 173: ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
! 174: dot.cshrc ${DESTDIR}/root/.cshrc; \
! 175: ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
! 176: dot.klogin ${DESTDIR}/root/.klogin; \
! 177: ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
! 178: dot.login ${DESTDIR}/root/.login; \
! 179: ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
! 180: dot.profile ${DESTDIR}/root/.profile; \
! 181: ${ETC_INSTALL_FILE} -o root -g wheel -m 644 \
! 182: dot.shrc ${DESTDIR}/root/.shrc; \
1.189 perry 183: rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
1.230 ! perry 184: ${ETC_INSTALL_LINK} ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
! 185: ${ETC_INSTALL_LINK} ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1.162 lukem 186: (cd defaults; ${MAKE} install)
1.83 mrg 187: (cd mtree; ${MAKE} install)
1.63 mikel 188: (cd namedb; \
1.230 ! perry 189: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
1.124 simonb 190: ${NAMEDB} ${DESTDIR}/etc/namedb)
1.140 lukem 191: (cd rc.d; ${MAKE} install)
1.230 ! perry 192: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
! 193: postinstall ${DESTDIR}/etc
! 194: ${ETC_INSTALL_SYMLINK} -o root -g wheel -m 755 \
! 195: ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
! 196: ${ETC_INSTALL_SYMLINK} -o root -g wheel -m 755 \
! 197: /usr/sbin/rmt ${DESTDIR}/etc/rmt
! 198: ${ETC_INSTALL_FILE} -o ${BINOWN} -g operator -m 664 \
! 199: /dev/null ${DESTDIR}/etc/dumpdates
! 200: ${ETC_INSTALL_FILE} -o ${BINOWN} -g operator -m 600 \
! 201: /dev/null ${DESTDIR}/etc/skeykeys
! 202: ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
! 203: /dev/null ${DESTDIR}/var/at/at.deny
! 204: ${ETC_INSTALL_FILE} -o root -g wheel -m 600 \
! 205: /dev/null ${DESTDIR}/var/cron/log
! 206: ${ETC_INSTALL_FILE} -o nobody -g ${BINGRP} -m 664 \
! 207: /dev/null ${DESTDIR}/var/db/locate.database
! 208: ${ETC_INSTALL_FILE} -o uucp -g dialer -m 640 \
! 209: /dev/null ${DESTDIR}/var/log/aculog
! 210: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
! 211: /dev/null ${DESTDIR}/var/log/authlog
! 212: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 664 \
! 213: /dev/null ${DESTDIR}/var/log/lastlog
! 214: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 640 \
! 215: /dev/null ${DESTDIR}/var/log/lpd-errs
! 216: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
! 217: /dev/null ${DESTDIR}/var/log/maillog
! 218: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 219: /dev/null ${DESTDIR}/var/log/messages
! 220: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
! 221: /dev/null ${DESTDIR}/var/log/secure
! 222: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 223: /dev/null ${DESTDIR}/var/log/sendmail.st
! 224: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 225: /dev/null ${DESTDIR}/var/log/wtmp
! 226: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 644 \
! 227: /dev/null ${DESTDIR}/var/log/wtmpx
! 228: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${BINGRP} -m 600 \
! 229: /dev/null ${DESTDIR}/var/log/xferlog
! 230: ${ETC_INSTALL_FILE} -o daemon -g staff -m 664 \
! 231: /dev/null ${DESTDIR}/var/msgs/bounds
! 232: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${UTMPGRP} -m 664 \
! 233: /dev/null ${DESTDIR}/var/run/utmp
! 234: ${ETC_INSTALL_FILE} -o ${BINOWN} -g ${UTMPGRP} -m 664 \
! 235: /dev/null ${DESTDIR}/var/run/utmpx
! 236: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 237: /dev/null ${DESTDIR}/var/games/atc_scores
! 238: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 239: /dev/null ${DESTDIR}/var/games/battlestar.log
! 240: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 241: /dev/null ${DESTDIR}/var/games/cfscores
! 242: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 243: /dev/null ${DESTDIR}/var/games/criblog
! 244: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 245: /dev/null ${DESTDIR}/var/games/robots_roll
! 246: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 247: /dev/null ${DESTDIR}/var/games/rogue.scores
! 248: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 249: /dev/null ${DESTDIR}/var/games/saillog
! 250: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 251: /dev/null ${DESTDIR}/var/games/snakerawscores
! 252: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 253: /dev/null ${DESTDIR}/var/games/snake.log
! 254: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 255: /dev/null ${DESTDIR}/var/games/tetris.scores
! 256: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 257: /dev/null ${DESTDIR}/var/games/larn/llog12.0
! 258: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 259: /dev/null ${DESTDIR}/var/games/larn/lscore12.0
! 260: ${ETC_INSTALL_FILE} -o games -g games -m 664 \
! 261: /dev/null ${DESTDIR}/var/games/larn/playerids
1.165 simonb 262: (cd skel; ${MAKE} distribution)
1.62 perry 263: (cd ../usr.bin/mail; ${MAKE} distribution)
1.143 perry 264: (cd ../gnu/usr.sbin/postfix/; ${MAKE} distribution)
1.155 thorpej 265: .if (${MKCRYPTO} != "no")
266: (cd ../usr.bin/ssh; ${MAKE} distribution)
267: .endif
1.200 lukem 268: .if !defined(NO_SENDMAIL)
1.133 tron 269: (cd ../gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.90 kim 270: .endif
1.1 cgd 271:
1.204 lukem 272: distrib-dirs: check_DESTDIR
1.230 ! perry 273: ${INSTALL_DIR} -o root -g wheel -m 755 ${BASE_PKG} ${DESTDIR}
1.192 perry 274: ${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U ${UNPRIVED:D-W}
1.189 perry 275: rm -f ${DESTDIR}/sys
1.230 ! perry 276: ${INSTALL_SYMLINK} -o root -g wheel -m 755 ${BASE_PKG} \
! 277: usr/src/sys ${DESTDIR}/sys
1.200 lukem 278:
1.204 lukem 279: release snapshot: check_DESTDIR check_RELEASEDIR .WAIT \
1.218 sommerfe 280: distribution .WAIT snap_pre snap_md_pre .WAIT snap_kern .WAIT snap_md_post
1.141 thorpej 281: (cd ../distrib/sets; ${MAKE} sets)
1.206 bjh21 282: ${MAKESUMS} -t ${RELEASEDIR}/binary/kernel '*.gz'
1.161 hubertf 283:
284: # Standalone target to create a CDROM image after the release
285: # was composed. Should be run after "make build" in both src and xsrc
1.204 lukem 286: iso-image: check_DESTDIR check_RELEASEDIR .WAIT iso-image_md_post
1.161 hubertf 287:
1.204 lukem 288: iso-image_mi: check_DESTDIR check_RELEASEDIR .WAIT iso-image_md_pre
1.161 hubertf 289: @if ${MKISOFS} --version; then \
290: mkdir -p ${RELEASEDIR}/installation/cdrom ; \
291: ${MKISOFS} ${MKISOFS_FLAGS} \
1.230 ! perry 292: -o ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
! 293: ${RELEASEDIR} ; \
1.206 bjh21 294: ${MAKESUMS} -t ${RELEASEDIR}/installation/cdrom '*.iso' ; \
1.161 hubertf 295: else \
296: echo "install pkgsrc/sysutils/cdrecord and type 'make iso-image'." ; \
297: fi
298:
299: # Setup the $RELEASEDIR to produce a bootable CD image:
1.204 lukem 300: iso-image_md_pre: check_DESTDIR check_RELEASEDIR
1.161 hubertf 301: # nothing here -- look in the machine-dependent Makefile.inc
302:
303: # Fixup the CD-image to be bootable
1.204 lukem 304: iso-image_md_post: check_DESTDIR check_RELEASEDIR .WAIT iso-image_mi
1.161 hubertf 305: # nothing here -- look in the machine-dependent Makefile.inc
1.41 cgd 306:
1.204 lukem 307: snap_pre: check_DESTDIR check_RELEASEDIR
1.168 jmc 308: # Could be a mount point, ignore the errors
1.167 jmc 309: -/bin/rm -rf ${RELEASEDIR}
1.202 lukem 310: ${INSTALL} -d -m 755 ${RELEASEDIR}
1.117 simonb 311: .for dir in ${INSTALLATION_DIRS}
1.202 lukem 312: ${INSTALL} -d -m 755 ${RELEASEDIR}/${dir}
1.117 simonb 313: .endfor
1.96 cjs 314:
1.196 thorpej 315: # This target builds the kernels specified by each port. A port may
316: # specify the following kernels:
317: #
318: # KERNEL_SETS The list of kernels that will be
319: # packaged into sets, named
320: # kern-${kernel}.tgz. These kernels
1.203 chs 321: # are also placed in the binary/kernel
1.196 thorpej 322: # area of the release package as
323: # netbsd-${kernel}.gz.
324: #
325: # EXTRA_KERNELS Additional kernels to place in the
1.203 chs 326: # binary/kernel area of the release
1.196 thorpej 327: # package as netbsd-${kernel}.gz, but
328: # which are not placed into sets. This
329: # allows a port to provide e.g. a netbootable
330: # installation kernel containing a ramdisk.
331: #
332: # BUILD_KERNELS Additional kernels to build which are
333: # not placed into sets nor into the
1.203 chs 334: # binary/kernel area of the release
1.196 thorpej 335: # package. These are typically kernels
336: # that are built for inclusion only in
337: # installation disk/CD-ROM/tape images.
1.116 fair 338: #
1.197 thorpej 339: # A port may also specify KERNEL_SUFFIXES, which is an optional list
340: # of filename suffixes for kernels to include in the kernel sets and
1.203 chs 341: # in the binary/kernel area of the release package (e.g. "netbsd" vs.
1.197 thorpej 342: # "netbsd.ecoff" and "netbsd.srec"). It is not an error if kernels
343: # with these suffixes do not exist in the kernel build directory.
344: #
1.229 lukem 345: #
346: # A list of all the kernels to build, which can be overridden from
347: # external sources (such as make(1)'s environment or command line)
348: #
349: ALL_KERNELS?= ${KERNEL_SETS} ${EXTRA_KERNELS} ${BUILD_KERNELS}
350: #
1.116 fair 351: GETKERNELAWK= awk '/^config/ {print $$2; found=1} \
352: END{ if (found == 0) print "netbsd"; }'
1.96 cjs 353: #
1.118 gwr 354: .if !target(snap_kern)
1.204 lukem 355: snap_kern: check_DESTDIR check_RELEASEDIR
1.201 lukem 356: .if !defined(KERNELS_DONE) # {
1.229 lukem 357: .for configfile in ${ALL_KERNELS}
1.125 sommerfe 358: cd ${KERNCONFDIR} && ${CONFIG} \
1.179 mrg 359: -b ${KERNOBJDIR}/${configfile:C/.*\///} -s ${KERNSRCDIR} ${configfile}
1.201 lukem 360: .if !defined(UPDATE)
1.200 lukem 361: cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} distclean
1.96 cjs 362: .endif
1.218 sommerfe 363: cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} depend && ${MAKE}
1.196 thorpej 364: .endfor # build kernels
1.203 chs 365: .endif # KERNELS_DONE # }
1.196 thorpej 366: .for configfile in ${KERNEL_SETS}
1.197 thorpej 367: kernlist=`${GETKERNELAWK} ${KERNCONFDIR}/${configfile}`; \
368: kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
1.207 bjh21 369: kernsuffixes="${KERNEL_SUFFIXES}"; \
1.210 lukem 370: cd $${kerndir} && ( \
1.214 lukem 371: echo "/set uname=${BINOWN} gname=${BINGRP}"; \
372: echo ". type=dir optional"; \
1.210 lukem 373: for kernel in $${kernlist}; do \
1.214 lukem 374: echo "./$${kernel} type=file"; \
1.207 bjh21 375: for s in $${kernsuffixes}; do \
1.197 thorpej 376: if [ -f $${kernel}.$${s} ]; then \
1.214 lukem 377: echo "./$${kernel}.$${s} type=file"; \
1.197 thorpej 378: fi; \
379: done; \
1.216 lukem 380: done ) | GZIP=-9 ${PAX} -zw \
381: -M ${UNPRIVED:D-N${NETBSDSRCDIR}/etc} \
1.210 lukem 382: -f ${RELEASEDIR}/binary/sets/kern-${configfile}.tgz
1.196 thorpej 383: .endfor # make kernel sets
384: .for configfile in ${KERNEL_SETS} ${EXTRA_KERNELS}
1.197 thorpej 385: kernlist=`${GETKERNELAWK} ${KERNCONFDIR}/${configfile:C/.*\///}`; \
386: kerndir=${KERNOBJDIR}/${configfile:C/.*\///}; \
1.207 bjh21 387: kernsuffixes="${KERNEL_SUFFIXES}"; \
1.197 thorpej 388: cd $${kerndir} && \
389: gziplist=`for kernel in $${kernlist}; do \
390: echo "$${kernel}"; \
1.207 bjh21 391: for s in $${kernsuffixes}; do \
1.197 thorpej 392: if [ -f $${kernel}.$${s} ]; then \
393: echo "$${kernel}.$${s}"; \
394: fi; \
395: done; \
396: done`; \
397: for kernel in $${gziplist} ; do \
1.114 fair 398: gzip -c -9 < $${kernel} > \
1.201 lukem 399: ${RELEASEDIR}/binary/kernel/$${kernel}-${configfile:C/.*\///}.gz ; done
1.196 thorpej 400: .endfor # place KERNEL_SETS kernels + EXTRA_KERNELS in binary/kernel/...
1.118 gwr 401: .endif # no target(snap_kern)
1.108 drochner 402:
1.204 lukem 403: snap_md_pre: check_DESTDIR check_RELEASEDIR
1.117 simonb 404: # nothing here -- look in the machine-dependent Makefile.inc
405:
1.204 lukem 406: snap_md_post: check_DESTDIR check_RELEASEDIR
1.41 cgd 407: # nothing here -- look in the machine-dependent Makefile.inc
1.7 cgd 408:
1.1 cgd 409: .include <bsd.prog.mk>
CVSweb <webmaster@jp.NetBSD.org>