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

Annotation of src/etc/Makefile, Revision 1.84

1.84    ! perry       1: #      $NetBSD: Makefile,v 1.83 1997/12/02 06:52:14 mrg Exp $
1.66      mikel       2: #      from: @(#)Makefile      8.7 (Berkeley) 5/25/95
1.1       cgd         3:
1.23      cgd         4: TZDIR=         /usr/share/zoneinfo
1.19      deraadt     5: LOCALTIME=     US/Pacific
                      6:
1.55      perry       7: # setting NOOBJ prevents "make obj" from doing anything;
                      8: # an objdir would break the installation stuff below
1.1       cgd         9: NOOBJ= oobj
                     10:
1.80      jonathan   11: # MD Makefile.inc may append MD targets to BIN[123].  Make sure all
                     12: # are empty, to preserve the old semantics of setting them below with "=".
                     13: BIN1=
                     14: BIN2=
                     15: BIN3=
                     16:
1.71      cjs        17: .if exists(etc.${MACHINE}/Makefile.inc)
                     18: .include "etc.${MACHINE}/Makefile.inc"
                     19: .endif
1.32      jtc        20:
1.21      cgd        21: # -rw-r--r--
                     22: BINOWN= root
                     23: BINGRP= wheel
1.80      jonathan   24: BIN1+= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \
1.65      mikel      25:        daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \
1.84    ! perry      26:        gettytab group hosts hosts.lpd inetd.conf ld.so.conf lkm.conf \
1.75      mycroft    27:        man.conf monthly monthly.conf mrouted.conf netstart networks \
1.76      mycroft    28:        newsyslog.conf phones printcap profile protocols rbootd.conf rc \
1.74      veego      29:        rc.conf rc.lkm rc.local rc.subr remote rpc security security.conf \
                     30:        services shells syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \
1.60      mrg        31:        etc.${MACHINE}/disktab
1.1       cgd        32:
1.46      deraadt    33: # -rw-rw-r--
1.80      jonathan   34: BIN2+= motd
1.1       cgd        35:
1.77      mycroft    36: # -rw-------
1.80      jonathan   37: BIN3+= hosts.equiv
1.77      mycroft    38:
1.1       cgd        39: NAMEDB=        localhost.rev named.boot root.cache
                     40: PCS=   pcs750.bin
                     41:
1.53      cgd        42: all clean cleandir depend etc includes install lint:
1.1       cgd        43:
1.34      cgd        44: .ifndef DESTDIR
1.41      cgd        45: distribution distrib-dirs snapshot:
1.36      cgd        46:        @echo setenv DESTDIR before doing that!
1.34      cgd        47:        @false
                     48: .else
1.7       cgd        49: distribution: distrib-dirs
1.53      cgd        50:        (cd ..; ${MAKE} includes)
1.32      jtc        51:        (cd ..; ${MAKE} install)
1.56      thorpej    52:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
                     53:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
1.77      mycroft    54:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} ${DESTDIR}/etc
1.56      thorpej    55:        ${INSTALL} -c -o root -g wheel -m 600 crontab \
                     56:            ${DESTDIR}/var/cron/tabs/root
                     57:        ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
1.68      perry      58:        pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd
1.56      thorpej    59:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
1.1       cgd        60:             MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
1.73      perry      61:        ${INSTALL} -c -o root -g wheel -m 600 minfree \
                     62:            ${DESTDIR}/var/crash
1.1       cgd        63:        (cd root; \
1.56      thorpej    64:                ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \
1.1       cgd        65:                    ${DESTDIR}/root/.cshrc; \
1.65      mikel      66:                ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \
1.1       cgd        67:                    ${DESTDIR}/root/.klogin; \
1.56      thorpej    68:                ${INSTALL} -c -o root -g wheel -m 644 dot.login \
1.1       cgd        69:                    ${DESTDIR}/root/.login; \
1.56      thorpej    70:                ${INSTALL} -c -o root -g wheel -m 644 dot.profile \
1.1       cgd        71:                    ${DESTDIR}/root/.profile; \
                     72:                rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
                     73:                ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
                     74:                ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1.83      mrg        75:        (cd mtree; ${MAKE} install)
1.63      mikel      76:        (cd namedb; \
                     77:                ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
1.64      pk         78:                    ${DESTDIR}/etc/namedb)
1.19      deraadt    79:        /bin/rm -f ${DESTDIR}/etc/localtime
                     80:        ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
1.48      deraadt    81:        /bin/rm -f ${DESTDIR}/etc/rmt
                     82:        ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.56      thorpej    83:        ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
1.32      jtc        84:                ${DESTDIR}/etc/dumpdates
1.56      thorpej    85:        ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \
1.44      deraadt    86:                ${DESTDIR}/etc/skeykeys
1.56      thorpej    87:        ${INSTALL} -c -o root -g wheel -m 600 /dev/null \
1.38      cgd        88:                ${DESTDIR}/var/cron/log
1.56      thorpej    89:        ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
1.32      jtc        90:                ${DESTDIR}/var/db/locate.database
1.69      perry      91:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
                     92:                ${DESTDIR}/var/log/authlog
1.56      thorpej    93:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32      jtc        94:                ${DESTDIR}/var/log/lastlog
1.58      lukem      95:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
1.32      jtc        96:                ${DESTDIR}/var/log/lpd-errs
1.58      lukem      97:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
1.32      jtc        98:                ${DESTDIR}/var/log/maillog
1.58      lukem      99:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
1.32      jtc       100:                ${DESTDIR}/var/log/messages
1.58      lukem     101:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
                    102:                ${DESTDIR}/var/log/secure
                    103:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
1.32      jtc       104:                ${DESTDIR}/var/log/wtmp
1.69      perry     105:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
                    106:                ${DESTDIR}/var/log/xferlog
1.56      thorpej   107:        ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \
1.39      cgd       108:                ${DESTDIR}/var/msgs/bounds
1.56      thorpej   109:        ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32      jtc       110:                ${DESTDIR}/var/run/utmp
1.81      mrg       111:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    112:                ${DESTDIR}/var/games/atc_scores
                    113:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    114:                ${DESTDIR}/var/games/battlestar.log
                    115:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    116:                ${DESTDIR}/var/games/cfscores
                    117:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
1.82      perry     118:                ${DESTDIR}/var/games/criblog
1.81      mrg       119:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    120:                ${DESTDIR}/var/games/robots_roll
                    121:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    122:                ${DESTDIR}/var/games/rogue.scores
                    123:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    124:                ${DESTDIR}/var/games/saillog
                    125:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    126:                ${DESTDIR}/var/games/snakerawscores
                    127:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    128:                ${DESTDIR}/var/games/snake.log
                    129:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    130:                ${DESTDIR}/var/games/tetris.scores
                    131:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    132:                ${DESTDIR}/var/games/larn/llog12.0
                    133:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    134:                ${DESTDIR}/var/games/larn/lscore12.0
                    135:        ${INSTALL} -c -o games -g games -m 664 /dev/null \
                    136:                ${DESTDIR}/var/games/larn/playerids
1.56      thorpej   137:        (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1.6       cgd       138:            fstab.* ${DESTDIR}/etc)
1.49      tls       139:        (cd ${DESTDIR}/dev; ./MAKEDEV all)
1.62      perry     140:        (cd ../usr.bin/mail; ${MAKE} distribution)
1.35      cgd       141:        (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.1       cgd       142:
                    143:
1.7       cgd       144: distrib-dirs:
1.56      thorpej   145:        ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}
1.67      perry     146:        -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u
1.28      jtc       147:        cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
1.41      cgd       148:
                    149: snapshot: distribution snap_pre snap_tar snap_md
                    150:        cd ${DESTDIR}/snapshot && cksum * > CKSUMS
                    151:
                    152: snap_pre:
                    153:        /bin/rm -rf ${DESTDIR}/snapshot
1.56      thorpej   154:        ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
1.41      cgd       155:
                    156: snap_tar:
                    157:        cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
                    158:        cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
                    159:        cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
                    160:            gzip -9 > snapshot/etc.tar.gz
                    161:        cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
                    162:        cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
                    163:        cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
                    164:            snapshot/usr.games.tar.gz
                    165:        cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
                    166:            snapshot/usr.include.tar.gz
                    167:        cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
                    168:        cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
                    169:            snapshot/usr.libexec.tar.gz
1.51      pk        170:        cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
                    171:            usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
1.41      cgd       172:        cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
                    173:        cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
                    174:            snapshot/usr.share.tar.gz
                    175:        cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
                    176:
                    177: snap_md:
                    178: # nothing here -- look in the machine-dependent Makefile.inc
                    179:
1.34      cgd       180: .endif # DESTDIR check
1.7       cgd       181:
1.1       cgd       182: .include <bsd.prog.mk>

CVSweb <webmaster@jp.NetBSD.org>