Makefile revision 1.41
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.41 1994/03/05 08:06:41 cgd Exp $ 3 4TZDIR= /usr/share/zoneinfo 5LOCALTIME= US/Pacific 6 7NOOBJ= 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-- 15BINOWN= root 16BINGRP= wheel 17BIN1= aliases csh.cshrc csh.login csh.logout daily dm.conf \ 18 ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \ 19 man.conf monthly motd myname netstart newsyslog.conf phones \ 20 printcap protocols rc rc.local remote rpc security services shells \ 21 syslog.conf weekly etc.${MACHINE}/ttys etc.${MACHINE}/disktab 22 23# -rw-rw-rw- 24BIN2= motd 25 26MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist 27NAMEDB= localhost.rev named.boot root.cache 28PCS= pcs750.bin 29WCS1= wcs fppwcs poc poc1 poc2 fppoc 30WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 31 32all clean cleandir depend etc install lint: 33 34.ifndef DESTDIR 35distribution distrib-dirs snapshot: 36 @echo setenv DESTDIR before doing that! 37 @false 38.else 39distribution: distrib-dirs 40 (cd ..; ${MAKE} install) 41 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 42 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 43 install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 44 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 45 chroot ${DESTDIR}/ pwd_mkdb -p /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 644 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; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 61 ${DESTDIR}/etc/mtree 62 cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 63 ${DESTDIR}/etc/namedb 64 /bin/rm -f ${DESTDIR}/etc/localtime 65 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 66 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 67 ${DESTDIR}/etc/dumpdates 68 install -c -o root -g wheel -m 600 /dev/null \ 69 ${DESTDIR}/var/cron/log 70 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 71 ${DESTDIR}/var/db/locate.database 72 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 73 ${DESTDIR}/var/log/lastlog 74 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 75 ${DESTDIR}/var/log/lpd-errs 76 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 77 ${DESTDIR}/var/log/maillog 78 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 79 ${DESTDIR}/var/log/messages 80 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 81 ${DESTDIR}/var/log/wtmp 82 install -c -o daemon -g staff -m 664 /dev/null \ 83 ${DESTDIR}/var/msgs/bounds 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 98hcx9-distribution: 99 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 100 ${DESTDIR}/) 101 102distrib-dirs: 103 install -d -o root -g wheel -m 755 ${DESTDIR} 104 mtree -u -d -p ${DESTDIR}/ -f ${.CURDIR}/mtree/BSD.root.dist 105 mtree -u -d -p ${DESTDIR}/usr -f ${.CURDIR}/mtree/BSD.usr.dist 106 mtree -u -d -p ${DESTDIR}/var -f ${.CURDIR}/mtree/BSD.var.dist 107 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 108 109snapshot: distribution snap_pre snap_tar snap_md 110 cd ${DESTDIR}/snapshot && cksum * > CKSUMS 111 112snap_pre: 113 /bin/rm -rf ${DESTDIR}/snapshot 114 install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 115 116snap_tar: 117 cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 118 cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 119 cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 120 gzip -9 > snapshot/etc.tar.gz 121 cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 122 cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 123 cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 124 snapshot/usr.games.tar.gz 125 cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 126 snapshot/usr.include.tar.gz 127 cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 128 cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 129 snapshot/usr.libexec.tar.gz 130 cd ${DESTDIR} && tar cf - usr/mdec usr/local usr/src usr/obj | \ 131 gzip -9 > snapshot/usr.misc.tar.gz 132 cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 133 cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 134 snapshot/usr.share.tar.gz 135 cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 136 137snap_md: 138# nothing here -- look in the machine-dependent Makefile.inc 139 140.endif # DESTDIR check 141 142.include <bsd.prog.mk> 143