Makefile revision 1.70.2.2
1# $NetBSD: Makefile,v 1.70.2.2 1997/09/18 21:47:16 cjs Exp $ 2# from: @(#)Makefile 8.7 (Berkeley) 5/25/95 3 4TZDIR= /usr/share/zoneinfo 5LOCALTIME= US/Pacific 6 7# setting NOOBJ prevents "make obj" from doing anything; 8# an objdir would break the installation stuff below 9NOOBJ= oobj 10 11.include <bsd.own.mk> # for BUILDDIR and configs 12 13# -rw-r--r-- 14BINOWN= root 15BINGRP= wheel 16BIN1= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \ 17 daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 18 gettytab group hosts hosts.equiv hosts.lpd inetd.conf lkm.conf \ 19 man.conf monthly monthly.conf mrouted.conf netstart networks \ 20 newsyslog.conf phones printcap protocols rbootd.conf rc rc.conf \ 21 rc.lkm rc.local remote rpc security security.conf services shells \ 22 syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \ 23 etc.${MACHINE}/disktab 24 25# -rw-rw-r-- 26BIN2= motd 27 28NAMEDB= localhost.rev named.boot root.cache 29PCS= pcs750.bin 30 31all clean cleandir depend etc includes install lint: 32 33.ifndef DESTDIR 34distribution distrib-dirs snapshot: 35 @echo setenv DESTDIR before doing that! 36 @false 37.else 38distribution: distrib-dirs 39 (cd ..; ${MAKE} install) 40 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 41 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 42 ${INSTALL} -c -o root -g wheel -m 600 crontab \ 43 ${DESTDIR}/var/cron/tabs/root 44 ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 45 pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 46 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 47 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 48 (cd root; \ 49 ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 50 ${DESTDIR}/root/.cshrc; \ 51 ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \ 52 ${DESTDIR}/root/.klogin; \ 53 ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 54 ${DESTDIR}/root/.login; \ 55 ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 56 ${DESTDIR}/root/.profile; \ 57 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 58 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 59 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 60 (cd mtree; \ 61 ${INSTALL} -c -o root -g wheel -m 600 special \ 62 ${DESTDIR}/etc/mtree; \ 63 ${INSTALL} -c -o root -g wheel -m 444 NetBSD.dist \ 64 ${DESTDIR}/etc/mtree) 65 (cd namedb; \ 66 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 67 ${DESTDIR}/etc/namedb) 68 /bin/rm -f ${DESTDIR}/etc/localtime 69 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 70 /bin/rm -f ${DESTDIR}/etc/rmt 71 ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 72 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 73 ${DESTDIR}/etc/dumpdates 74 ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 75 ${DESTDIR}/etc/skeykeys 76 ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 77 ${DESTDIR}/var/cron/log 78 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 79 ${DESTDIR}/var/db/locate.database 80 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 81 ${DESTDIR}/var/log/authlog 82 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 83 ${DESTDIR}/var/log/lastlog 84 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 85 ${DESTDIR}/var/log/lpd-errs 86 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 87 ${DESTDIR}/var/log/maillog 88 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 89 ${DESTDIR}/var/log/messages 90 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 91 ${DESTDIR}/var/log/secure 92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 93 ${DESTDIR}/var/log/wtmp 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 95 ${DESTDIR}/var/log/xferlog 96 ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 97 ${DESTDIR}/var/msgs/bounds 98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 99 ${DESTDIR}/var/run/utmp 100 (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 101 fstab.* ${DESTDIR}/etc) 102 (cd ${DESTDIR}/dev; ./MAKEDEV all) 103 (cd ../usr.bin/mail; ${MAKE} distribution) 104 (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 105 106 107distrib-dirs: 108 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 109 -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 110 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 111 112snapshot: distribution snap_pre snap_tar snap_md 113 cd ${DESTDIR}/snapshot && cksum * > CKSUMS 114 115snap_pre: 116 /bin/rm -rf ${DESTDIR}/snapshot 117 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 118 119snap_tar: 120 cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 121 cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 122 cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 123 gzip -9 > snapshot/etc.tar.gz 124 cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 125 cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 126 cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 127 snapshot/usr.games.tar.gz 128 cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 129 snapshot/usr.include.tar.gz 130 cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 131 cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 132 snapshot/usr.libexec.tar.gz 133 cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 134 usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 135 cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 136 cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 137 snapshot/usr.share.tar.gz 138 cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 139 140snap_md: 141# nothing here -- look in the machine-dependent Makefile.inc 142 143.endif # DESTDIR check 144 145.include <bsd.prog.mk> 146