[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / etc

Annotation of src/etc/Makefile, Revision 1.219.2.4

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

CVSweb <webmaster@jp.NetBSD.org>