1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2 # $Id: Makefile,v 1.39 1994/02/19 08:08:30 cgd 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 "etc.${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 etc.${MACHINE}/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 .ifndef DESTDIR 38 distribution distrib-dirs: 39 @echo setenv DESTDIR before doing that! 40 @false 41 .else 42 distribution: distrib-dirs 43 (cd ..; ${MAKE} install) 44 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 45 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 46 install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 47 install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 48 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 49 chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd 50 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 51 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 52 (cd root; \ 53 install -c -o root -g wheel -m 644 dot.cshrc \ 54 ${DESTDIR}/root/.cshrc; \ 55 install -c -o root -g wheel -m 644 dot.klogin \ 56 ${DESTDIR}/root/.klogin; \ 57 install -c -o root -g wheel -m 644 dot.login \ 58 ${DESTDIR}/root/.login; \ 59 install -c -o root -g wheel -m 644 dot.profile \ 60 ${DESTDIR}/root/.profile; \ 61 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 62 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 63 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 64 cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 65 ${DESTDIR}/etc/mtree 66 cd namedb; 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 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 71 ${DESTDIR}/etc/dumpdates 72 install -c -o root -g wheel -m 600 /dev/null \ 73 ${DESTDIR}/var/cron/log 74 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 75 ${DESTDIR}/var/db/locate.database 76 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 77 ${DESTDIR}/var/log/lastlog 78 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 79 ${DESTDIR}/var/log/lpd-errs 80 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 81 ${DESTDIR}/var/log/maillog 82 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 83 ${DESTDIR}/var/log/messages 84 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 85 ${DESTDIR}/var/log/wtmp 86 install -c -o daemon -g staff -m 664 /dev/null \ 87 ${DESTDIR}/var/msgs/bounds 88 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 89 ${DESTDIR}/var/run/utmp 90 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 91 fstab.* ${DESTDIR}/etc) 92 .if ${MACHINE} == "tahoe" 93 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 94 ${DESTDIR}/) 95 .endif 96 .if ${MACHINE} == "vax" 97 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 98 ${DESTDIR}/) 99 .endif 100 (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 101 102 hcx9-distribution: 103 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 104 ${DESTDIR}/) 105 106 distrib-dirs: 107 install -d -o root -g wheel -m 755 ${DESTDIR} 108 mtree -u -d -p ${DESTDIR}/ -f ${.CURDIR}/mtree/BSD.root.dist 109 mtree -u -d -p ${DESTDIR}/usr -f ${.CURDIR}/mtree/BSD.usr.dist 110 mtree -u -d -p ${DESTDIR}/var -f ${.CURDIR}/mtree/BSD.var.dist 111 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 112 .endif # DESTDIR check 113 114 .include <bsd.prog.mk> 115