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

Annotation of src/etc/Makefile, Revision 1.189

1.189   ! perry       1: #      $NetBSD: Makefile,v 1.188 2001/10/29 01:19:19 perry 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.
                     22: #   EXTRA_KERNELS has a machine-dependent list of kernels to build added
                     23: #      to it, but you may also set this to have extra ones built.
1.119     ross       24: #   BUILD_KERNELS are a machine-dependent list of kernels that should just
                     25: #      be built in place but not made into sets or installed, e.g., an
                     26: #      INSTALL kernel used later in src/distrib/.
1.154     thorpej    27: #
1.96      cjs        28: # Targets:
                     29: #    distribution: makes a full NetBSD distribution in DESTDIR. If
                     30: #      INSTALL_DONE is set, it will not do a `make install.'
1.182     chs        31: #      if DISTRIBUTION_DONE is set, it will not do anything.
1.96      cjs        32: #    distrib-dirs: creates an empty NetBSD directory tree in DESTDIR.
                     33: #      Called by distribution.
                     34: #    snapshot: calls distribution, above, and then tars up the files
                     35: #      into a release(7) format in RELEASEDIR. Any port-dependent
                     36: #      stuff for this target is found in etc.${MACHINE}/Makefile.inc.
1.106     cjs        37: #    release: a synonym for `snapshot'
1.96      cjs        38:
1.149     sjg        39: # do this before bsd.own.mk so we get correct KERNSRCDIR
1.145     sjg        40: .include "../Makefile.inc"
                     41:
1.155     thorpej    42: # For NO_SENDMAIL, INSTPRIV, MKCRYPTO
1.90      kim        43: .include <bsd.own.mk>
1.187     jmc        44:
                     45: .MAKEOVERRIDES+=       USETOOLS
1.90      kim        46:
1.23      cgd        47: TZDIR=         /usr/share/zoneinfo
1.157     kleink     48: LOCALTIME?=    UTC
1.19      deraadt    49:
1.161     hubertf    50: # Flags for creating ISO CDROM image
                     51: # mkisofs is expected to be in $PATH, install via pkgsrc/sysutils/cdrecord
                     52: MKISOFS?=      mkisofs
                     53: MKISOFS_FLAGS+= -J -l \
                     54:                -r -T -v \
                     55:                -P "The NetBSD Project" \
1.164     hubertf    56:                -m "${RELEASEDIR}/installation/cdrom"
1.161     hubertf    57:
1.55      perry      58: # setting NOOBJ prevents "make obj" from doing anything;
                     59: # an objdir would break the installation stuff below
1.101     lukem      60: MKOBJ= no
1.1       cgd        61:
1.80      jonathan   62: # MD Makefile.inc may append MD targets to BIN[123].  Make sure all
                     63: # are empty, to preserve the old semantics of setting them below with "=".
                     64: BIN1=
                     65: BIN2=
                     66: BIN3=
                     67:
1.117     simonb     68: # Directories to build in ${RELEASEDIR}.   MD Makefile.inc files can
                     69: # add to this.
                     70: # NOTE: Parent directories must be listed before subdirectories.
                     71: INSTALLATION_DIRS= \
1.158     fvdl       72:        binary binary/sets binary/kernel installation
1.117     simonb     73:
1.71      cjs        74: .if exists(etc.${MACHINE}/Makefile.inc)
                     75: .include "etc.${MACHINE}/Makefile.inc"
                     76: .endif
1.32      jtc        77:
1.96      cjs        78: # Use multiple jobs for kernel builds, if NBUILDJOBS set.
                     79: # (Taken from src/Makefile.)
                     80: .if defined(NBUILDJOBS)
                     81: _J= -j${NBUILDJOBS}
                     82: .endif
                     83:
1.21      cgd        84: # -rw-r--r--
                     85: BINOWN= root
                     86: BINGRP= wheel
1.184     lukem      87: BIN1+= bootptab changelist csh.cshrc csh.login csh.logout daily \
1.131     veego      88:        daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \
                     89:        gettytab group hosts hosts.lpd inetd.conf lkm.conf \
                     90:        mailer.conf man.conf monthly monthly.conf mrouted.conf \
1.151     fvdl       91:        netconfig networks newsyslog.conf nsswitch.conf ntp.conf \
1.131     veego      92:        phones printcap profile protocols rbootd.conf rc rc.conf \
1.159     lukem      93:        rc.lkm rc.local rc.subr rc.shutdown remote rpc \
1.142     tsarna     94:        security security.conf services shells sysctl.conf syslog.conf \
                     95:        weekly weekly.conf wscons.conf \
1.109     drochner   96:        etc.${MACHINE}/ttys etc.${MACHINE}/disktab
1.105     mycroft    97:
1.121     fvdl       98: .if    (${MACHINE_ARCH} == "m68k") || \
1.105     mycroft    99:        (${MACHINE_ARCH} == "ns32k") || \
                    100:        (${MACHINE_ARCH} == "vax") || \
                    101:        (${MACHINE_ARCH} == "arm32")
1.129     christos  102: BIN1+= ld.so.conf
                    103: .elif exists(etc.${MACHINE_ARCH}/ld.so.conf)
1.132     jlam      104: BIN1+= etc.${MACHINE_ARCH}/ld.so.conf
1.152     perry     105: .endif
                    106:
                    107: .if exists(etc.${MACHINE_ARCH}/ttyaction)
                    108: BIN1+= etc.${MACHINE_ARCH}/ttyaction
1.105     mycroft   109: .endif
1.1       cgd       110:
1.46      deraadt   111: # -rw-rw-r--
1.80      jonathan  112: BIN2+= motd
1.1       cgd       113:
1.77      mycroft   114: # -rw-------
1.80      jonathan  115: BIN3+= hosts.equiv
1.77      mycroft   116:
1.144     thorpej   117: NAMEDB=        127 root.cache named.conf localhost loopback.v6
1.1       cgd       118: PCS=   pcs750.bin
                    119:
1.170     jdolecek  120: # find out endianness of target and set proper flag for pwd_mkdb so that
                    121: # it creates database in same endianness
                    122: .if exists(${DESTDIR}/usr/include/machine/endian_machdep.h)
1.171     simonb    123: TARGET_ENDIANNESS!= \
                    124:        ( echo "\#include <machine/endian_machdep.h>" ; echo _BYTE_ORDER ) | \
                    125:        ${CC} -I${DESTDIR}/usr/include -E - | tail -1 | awk '{print $$1}'
1.170     jdolecek  126: .else
                    127: TARGET_ENDIANNESS=
                    128: .endif
                    129:
                    130: .if ${TARGET_ENDIANNESS} == "_LITTLE_ENDIAN"
                    131: TARGET_ENDIANNESS= -L
                    132: .elif ${TARGET_ENDIANNESS} == "_BIG_ENDIAN"
                    133: TARGET_ENDIANNESS= -B
                    134: .else
1.177     tsutsui   135: # XXX sh3 should be split into sh3eb and sh3el
1.170     jdolecek  136: TARGET_ENDIANNESS=
                    137: .endif
                    138:
1.149     sjg       139: .include <bsd.kernobj.mk>
                    140:
                    141: obj:
                    142:        mkdir -p ${KERNOBJDIR}
                    143:
1.34      cgd       144: .ifndef DESTDIR
1.174     christos  145: __warndestdir: .USE
1.36      cgd       146:        @echo setenv DESTDIR before doing that!
1.34      cgd       147:        @false
1.174     christos  148: distribution distrib-dirs release snapshot snap_pre snap_md_pre \
                    149: iso-image: __warndestdir
                    150: .if !target(snap_md_post)
                    151: snap_md_post: __warndestdir
                    152: .endif
1.34      cgd       153: .else
1.7       cgd       154: distribution: distrib-dirs
1.182     chs       155: .if !defined(DISTRIBUTION_DONE)
1.87      perry     156: .if !defined(INSTALL_DONE)
1.107     scottr    157:        (cd ..; ${MAKE} _DISTRIB= includes)
                    158:        (cd ..; ${MAKE} _DISTRIB= install)
1.87      perry     159: .endif
1.124     simonb    160:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} \
                    161:            ${DESTDIR}/etc
                    162:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} \
                    163:            ${DESTDIR}/etc
                    164:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} \
                    165:            ${DESTDIR}/etc
                    166:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 aliases \
1.147     itojun    167:            ${DESTDIR}/etc/mail
1.124     simonb    168:        ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 crontab \
1.56      thorpej   169:            ${DESTDIR}/var/cron/tabs/root
1.124     simonb    170:        ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 master.passwd \
                    171:            ${DESTDIR}/etc
1.171     simonb    172:        pwd_mkdb -p ${TARGET_ENDIANNESS} -d ${DESTDIR}/ \
                    173:                ${DESTDIR}/etc/master.passwd
1.124     simonb    174:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
1.1       cgd       175:             MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
1.124     simonb    176:        ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 minfree \
1.73      perry     177:            ${DESTDIR}/var/crash
1.1       cgd       178:        (cd root; \
1.124     simonb    179:                ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.cshrc \
1.1       cgd       180:                    ${DESTDIR}/root/.cshrc; \
1.124     simonb    181:                ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 dot.klogin \
1.1       cgd       182:                    ${DESTDIR}/root/.klogin; \
1.124     simonb    183:                ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.login \
1.1       cgd       184:                    ${DESTDIR}/root/.login; \
1.124     simonb    185:                ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.profile \
1.1       cgd       186:                    ${DESTDIR}/root/.profile; \
1.128     mycroft   187:                ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 644 dot.shrc \
                    188:                    ${DESTDIR}/root/.shrc; \
1.189   ! perry     189:                rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
1.188     perry     190:                ${INSTALL} ${INSTPRIV} -l h \
                    191:                        ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
                    192:                ${INSTALL} ${INSTPRIV} -l h \
                    193:                        ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1.162     lukem     194:        (cd defaults; ${MAKE} install)
1.83      mrg       195:        (cd mtree; ${MAKE} install)
1.63      mikel     196:        (cd namedb; \
1.124     simonb    197:                ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
                    198:                    ${NAMEDB} ${DESTDIR}/etc/namedb)
1.140     lukem     199:        (cd rc.d; ${MAKE} install)
1.188     perry     200:        ${INSTALL} ${INSTPRIV} -l s -o root -g wheel -m 755 \
                    201:                ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
                    202:        ${INSTALL} ${INSTPRIV} -l s -o root -g wheel -m 755 \
                    203:                /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.124     simonb    204:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g operator -m 664 /dev/null \
1.32      jtc       205:                ${DESTDIR}/etc/dumpdates
1.124     simonb    206:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g operator -m 600 /dev/null \
1.44      deraadt   207:                ${DESTDIR}/etc/skeykeys
1.127     perry     208:        ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 /dev/null \
                    209:                ${DESTDIR}/var/at/at.deny
1.124     simonb    210:        ${INSTALL} ${INSTPRIV} -c -o root -g wheel -m 600 /dev/null \
1.38      cgd       211:                ${DESTDIR}/var/cron/log
1.124     simonb    212:        ${INSTALL} ${INSTPRIV} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
1.32      jtc       213:                ${DESTDIR}/var/db/locate.database
1.124     simonb    214:        ${INSTALL} ${INSTPRIV} -c -o uucp -g dialer -m 640 /dev/null \
1.113     fair      215:                ${DESTDIR}/var/log/aculog
1.124     simonb    216:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
1.69      perry     217:                ${DESTDIR}/var/log/authlog
1.124     simonb    218:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32      jtc       219:                ${DESTDIR}/var/log/lastlog
1.124     simonb    220:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
1.32      jtc       221:                ${DESTDIR}/var/log/lpd-errs
1.124     simonb    222:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
1.32      jtc       223:                ${DESTDIR}/var/log/maillog
1.124     simonb    224:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
1.32      jtc       225:                ${DESTDIR}/var/log/messages
1.124     simonb    226:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
1.58      lukem     227:                ${DESTDIR}/var/log/secure
1.137     mycroft   228:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
                    229:                ${DESTDIR}/var/log/sendmail.st
1.124     simonb    230:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
1.32      jtc       231:                ${DESTDIR}/var/log/wtmp
1.124     simonb    232:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
1.69      perry     233:                ${DESTDIR}/var/log/xferlog
1.124     simonb    234:        ${INSTALL} ${INSTPRIV} -c -o daemon -g staff -m 664 /dev/null \
1.39      cgd       235:                ${DESTDIR}/var/msgs/bounds
1.124     simonb    236:        ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32      jtc       237:                ${DESTDIR}/var/run/utmp
1.124     simonb    238:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       239:                ${DESTDIR}/var/games/atc_scores
1.124     simonb    240:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       241:                ${DESTDIR}/var/games/battlestar.log
1.124     simonb    242:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       243:                ${DESTDIR}/var/games/cfscores
1.124     simonb    244:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.82      perry     245:                ${DESTDIR}/var/games/criblog
1.124     simonb    246:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       247:                ${DESTDIR}/var/games/robots_roll
1.124     simonb    248:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       249:                ${DESTDIR}/var/games/rogue.scores
1.124     simonb    250:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       251:                ${DESTDIR}/var/games/saillog
1.124     simonb    252:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       253:                ${DESTDIR}/var/games/snakerawscores
1.124     simonb    254:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       255:                ${DESTDIR}/var/games/snake.log
1.124     simonb    256:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       257:                ${DESTDIR}/var/games/tetris.scores
1.124     simonb    258:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       259:                ${DESTDIR}/var/games/larn/llog12.0
1.124     simonb    260:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       261:                ${DESTDIR}/var/games/larn/lscore12.0
1.124     simonb    262:        ${INSTALL} ${INSTPRIV} -c -o games -g games -m 664 /dev/null \
1.81      mrg       263:                ${DESTDIR}/var/games/larn/playerids
1.124     simonb    264:        (cd etc.${MACHINE}; ${INSTALL} ${INSTPRIV} -c -o ${BINOWN} \
                    265:            -g ${BINGRP} -m 444 fstab.* ${DESTDIR}/etc)
1.165     simonb    266:        (cd skel; ${MAKE} distribution)
1.62      perry     267:        (cd ../usr.bin/mail; ${MAKE} distribution)
1.143     perry     268:        (cd ../gnu/usr.sbin/postfix/; ${MAKE} distribution)
1.155     thorpej   269: .if (${MKCRYPTO} != "no")
                    270:        (cd ../usr.bin/ssh; ${MAKE} distribution)
                    271: .endif
1.90      kim       272: .ifndef NO_SENDMAIL
1.133     tron      273:        (cd ../gnu/usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.182     chs       274: .endif
1.90      kim       275: .endif
1.1       cgd       276:
1.7       cgd       277: distrib-dirs:
1.124     simonb    278:        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${DESTDIR}
1.188     perry     279:        ${MTREE} -def mtree/NetBSD.dist -p ${DESTDIR}/ -U ${UNPRIVILEGED:D-W}
1.189   ! perry     280:        rm -f ${DESTDIR}/sys
1.188     perry     281:        ${INSTALL} ${INSTPRIV} -l s -o root -g wheel -m 755 \
                    282:                usr/src/sys ${DESTDIR}/sys
1.99      cjs       283:
1.96      cjs       284: .if !defined(RELEASEDIR)
1.175     christos  285: __warnreleasedir: .USE
1.96      cjs       286:        @echo setenv RELEASEDIR before doing that!
                    287:        @false
1.175     christos  288: release snapshot snap_pre snap_md_pre iso-image: __warnreleasedir
                    289: .if !target(snap_md_post)
                    290: snap_md_post: __warnreleasedir
                    291: .endif
1.96      cjs       292: .else
1.117     simonb    293: release snapshot: distribution snap_pre snap_md_pre snap_kern snap_md_post
1.141     thorpej   294:        (cd ../distrib/sets; ${MAKE} sets)
1.123     is        295:        sh ../distrib/sets/makesums -t ${RELEASEDIR}/binary/kernel '*.gz'
1.161     hubertf   296:
                    297: # Standalone target to create a CDROM image after the release
                    298: # was composed. Should be run after "make build" in both src and xsrc
                    299: iso-image: iso-image_md_post
                    300:
                    301: iso-image_mi: iso-image_md_pre
                    302:        @if ${MKISOFS} --version; then \
                    303:                mkdir -p ${RELEASEDIR}/installation/cdrom ; \
                    304:                ${MKISOFS} ${MKISOFS_FLAGS} \
                    305:                        -o ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
                    306:                        ${RELEASEDIR} ; \
                    307:                sh ../distrib/sets/makesums -t ${RELEASEDIR}/installation/cdrom '*.iso' ; \
                    308:        else \
                    309:                echo "install pkgsrc/sysutils/cdrecord and type 'make iso-image'." ; \
                    310:        fi
                    311:
                    312: # Setup the $RELEASEDIR to produce a bootable CD image:
                    313: iso-image_md_pre:
                    314: # nothing here -- look in the machine-dependent Makefile.inc
                    315:
                    316: # Fixup the  CD-image to be bootable
                    317: iso-image_md_post: iso-image_mi
                    318: # nothing here -- look in the machine-dependent Makefile.inc
1.41      cgd       319:
                    320: snap_pre:
1.168     jmc       321: # Could be a mount point, ignore the errors
1.167     jmc       322:        -/bin/rm -rf ${RELEASEDIR}
1.124     simonb    323:        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}
1.117     simonb    324: .for dir in ${INSTALLATION_DIRS}
1.124     simonb    325:        ${INSTALL} ${INSTPRIV} -d -o root -g wheel -m 755 ${RELEASEDIR}/${dir}
1.117     simonb    326: .endfor
1.96      cjs       327:
                    328:
                    329: # This target builds the GENERIC kernel (which must exist for all
                    330: # ports) and puts it in binary/sets/kern.tgz, and also builds any
1.114     fair      331: # kernels specified in EXTRA_KERNELS. Since NetBSD's kernel build
                    332: # system can create more than one kernel from a single configuration
                    333: # we figure out how many there are, what they're named, and move them
                    334: # to binary/kernel/${KERNEL}.${CONFIGFILE}.gz - most often KERNEL will
1.116     fair      335: # simply be "netbsd". If we don't find the "config" line, assume the
                    336: # kernel will be "netbsd" (some config files are simple additions on
                    337: # GENERIC, and just include it).
                    338: #
                    339: GETKERNELAWK=  awk '/^config/ {print $$2; found=1} \
                    340:                END{ if (found == 0) print "netbsd"; }'
1.96      cjs       341: #
1.118     gwr       342: .if !target(snap_kern)
1.96      cjs       343: snap_kern:
1.145     sjg       344: .ifndef KERNELS_DONE
1.135     mycroft   345: .for configfile in GENERIC ${EXTRA_KERNELS} ${BUILD_KERNELS}
1.125     sommerfe  346:        cd ${KERNCONFDIR} && ${CONFIG} \
1.179     mrg       347:                -b ${KERNOBJDIR}/${configfile:C/.*\///} -s ${KERNSRCDIR} ${configfile}
1.97      cjs       348: .ifndef UPDATE
1.179     mrg       349:        cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} distclean
1.96      cjs       350: .endif
1.179     mrg       351:        cd ${KERNOBJDIR}/${configfile:C/.*\///} && ${MAKE} depend && ${MAKE} ${_J}
1.135     mycroft   352: .endfor # kernels
1.96      cjs       353:        cd ${KERNOBJDIR}/GENERIC &&     \
1.116     fair      354:                tar cf - `${GETKERNELAWK} ${KERNCONFDIR}/GENERIC` |\
1.96      cjs       355:                gzip -c -9 > ${RELEASEDIR}/binary/sets/kern.tgz
1.135     mycroft   356: .for configfile in GENERIC ${EXTRA_KERNELS}
1.179     mrg       357:        cd ${KERNOBJDIR}/${configfile:C/.*\///} &&      \
1.116     fair      358:                for kernel in `${GETKERNELAWK} \
1.179     mrg       359:                        ${KERNCONFDIR}/${configfile:C/.*\///}` ; do   \
1.114     fair      360:                gzip -c -9 < $${kernel} > \
1.179     mrg       361:                        ${RELEASEDIR}/binary/kernel/$${kernel}.${configfile:C/.*\///}.gz ; done
1.96      cjs       362: .endfor # EXTRA_KERNELS
1.145     sjg       363: .endif # KERNELS_DONE
1.118     gwr       364: .endif # no target(snap_kern)
1.108     drochner  365:
1.96      cjs       366: .endif # RELEASEDIR check
1.41      cgd       367:
1.117     simonb    368: snap_md_pre:
                    369: # nothing here -- look in the machine-dependent Makefile.inc
                    370:
                    371: snap_md_post:
1.41      cgd       372: # nothing here -- look in the machine-dependent Makefile.inc
                    373:
1.34      cgd       374: .endif # DESTDIR check
1.7       cgd       375:
1.1       cgd       376: .include <bsd.prog.mk>

CVSweb <webmaster@jp.NetBSD.org>