1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2 # $Id: Makefile,v 1.35 1994/02/09 07:29:36 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: 39 @echo setenv DESTDIR before running a 'make distribution'. 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 nobody -g ${BINGRP} -m 664 /dev/null \ 73 ${DESTDIR}/var/db/locate.database 74 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 75 ${DESTDIR}/var/log/lastlog 76 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 77 ${DESTDIR}/var/log/lpd-errs 78 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 79 ${DESTDIR}/var/log/maillog 80 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 81 ${DESTDIR}/var/log/messages 82 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 83 ${DESTDIR}/var/log/wtmp 84 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 85 ${DESTDIR}/var/run/utmp 86 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 87 fstab.* ${DESTDIR}/etc) 88 .if ${MACHINE} == "tahoe" 89 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 90 ${DESTDIR}/) 91 .endif 92 .if ${MACHINE} == "vax" 93 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 94 ${DESTDIR}/) 95 .endif 96 (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 97 98 hcx9-distribution: 99 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 100 ${DESTDIR}/) 101 102 distrib-dirs: 103 mtree -u -d -p ${DESTDIR}/ -f ${.CURDIR}/mtree/BSD.root.dist 104 mtree -u -d -p ${DESTDIR}/usr -f ${.CURDIR}/mtree/BSD.usr.dist 105 mtree -u -d -p ${DESTDIR}/var -f ${.CURDIR}/mtree/BSD.var.dist 106 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 107 .endif # DESTDIR check 108 109 .include <bsd.prog.mk> 110