1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2 # $Id: Makefile,v 1.32 1994/02/05 02:01:49 jtc Exp $ 3 4 TZDIR= /usr/share/zoneinfo 5 LOCALTIME= US/Pacific 6 7 NOOBJ= oobj 8 9 .if exists(etc.${MACHINE}/Makefile.inc) 10 .include ${MACHINE}/Makefile.inc 11 .endif 12 13 # disktab may be wrong -- hcx9 is a tahoe, but gets its own. 14 # -rw-r--r-- 15 BINOWN= root 16 BINGRP= wheel 17 BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ 18 ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \ 19 man.conf motd myname netstart newsyslog.conf phones \ 20 printcap protocols rc rc.local remote security services shells \ 21 syslog.conf ttys etc.${MACHINE}/disktab rpc 22 23 # -rw-rw-rw- 24 BIN2= motd 25 26 # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel 27 BIN3= daily weekly monthly 28 29 MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist 30 NAMEDB= localhost.rev named.boot root.cache 31 PCS= pcs750.bin 32 WCS1= wcs fppwcs poc poc1 poc2 fppoc 33 WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 34 35 all clean cleandir depend etc install lint: 36 37 distribution: distrib-dirs 38 (cd ..; ${MAKE} install) 39 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 40 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 41 install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 42 install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 43 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 44 chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd 45 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 46 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 47 (cd root; \ 48 install -c -o root -g wheel -m 644 dot.cshrc \ 49 ${DESTDIR}/root/.cshrc; \ 50 install -c -o root -g wheel -m 644 dot.klogin \ 51 ${DESTDIR}/root/.klogin; \ 52 install -c -o root -g wheel -m 644 dot.login \ 53 ${DESTDIR}/root/.login; \ 54 install -c -o root -g wheel -m 644 dot.profile \ 55 ${DESTDIR}/root/.profile; \ 56 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 57 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 58 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 59 cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 60 ${DESTDIR}/etc/mtree 61 cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 62 ${DESTDIR}/etc/namedb 63 /bin/rm -f ${DESTDIR}/etc/localtime 64 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 65 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 66 ${DESTDIR}/etc/dumpdates 67 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 68 ${DESTDIR}/var/db/locate.database 69 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 70 ${DESTDIR}/var/log/lastlog 71 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 72 ${DESTDIR}/var/log/lpd-errs 73 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 74 ${DESTDIR}/var/log/maillog 75 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 76 ${DESTDIR}/var/log/messages 77 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 78 ${DESTDIR}/var/log/wtmp 79 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 80 ${DESTDIR}/var/run/utmp 81 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 82 fstab.* ${DESTDIR}/etc) 83 .if ${MACHINE} == "tahoe" 84 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 85 ${DESTDIR}/) 86 .endif 87 .if ${MACHINE} == "vax" 88 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 89 ${DESTDIR}/) 90 .endif 91 92 hcx9-distribution: 93 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 94 ${DESTDIR}/) 95 96 distrib-dirs: 97 mtree -u -d -p ${DESTDIR}/ -f ${.CURDIR}/mtree/BSD.root.dist 98 mtree -u -d -p ${DESTDIR}/usr -f ${.CURDIR}/mtree/BSD.usr.dist 99 mtree -u -d -p ${DESTDIR}/var -f ${.CURDIR}/mtree/BSD.var.dist 100 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 101 102 .include <bsd.prog.mk> 103