Makefile revision 1.46
11.24Smycroft#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
21.46Sderaadt#	$Id: Makefile,v 1.46 1994/06/16 18:59:14 deraadt Exp $
31.1Scgd
41.23ScgdTZDIR=		/usr/share/zoneinfo
51.19SderaadtLOCALTIME=	US/Pacific
61.19Sderaadt
71.1ScgdNOOBJ=	oobj
81.1Scgd
91.32Sjtc.if exists(etc.${MACHINE}/Makefile.inc)
101.34Scgd.include "etc.${MACHINE}/Makefile.inc"
111.32Sjtc.endif
121.32Sjtc
131.1Scgd# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
141.21Scgd# -rw-r--r--
151.21ScgdBINOWN= root
161.21ScgdBINGRP= wheel
171.45ScgdBIN1=	aliases bootptab changelist csh.cshrc csh.login csh.logout daily \
181.45Scgd	dm.conf ftpusers ftpchroot gettytab group hosts hosts.equiv hosts.lpd \
191.42Scgd	inetd.conf man.conf monthly motd myname netstart newsyslog.conf \
201.42Scgd	phones printcap protocols rc rc.local remote rpc security services \
211.42Scgd	shells syslog.conf weekly etc.${MACHINE}/ttys etc.${MACHINE}/disktab
221.1Scgd
231.46Sderaadt# -rw-rw-r--
241.1ScgdBIN2=	motd
251.1Scgd
261.1ScgdMTREE=	BSD.root.dist BSD.usr.dist BSD.var.dist
271.1ScgdNAMEDB=	localhost.rev named.boot root.cache
281.1ScgdPCS=	pcs750.bin
291.1ScgdWCS1=	wcs fppwcs poc poc1 poc2 fppoc
301.1ScgdWCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
311.1Scgd
321.1Scgdall clean cleandir depend etc install lint:
331.1Scgd
341.34Scgd.ifndef DESTDIR
351.41Scgddistribution distrib-dirs snapshot:
361.36Scgd	@echo setenv DESTDIR before doing that!
371.34Scgd	@false
381.34Scgd.else
391.7Scgddistribution: distrib-dirs
401.32Sjtc	(cd ..; ${MAKE} install)
411.21Scgd	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
421.46Sderaadt	install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
431.3Sglass	install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
441.1Scgd	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
451.32Sjtc	chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd
461.1Scgd	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
471.1Scgd	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
481.1Scgd	(cd root; \
491.1Scgd		install -c -o root -g wheel -m 644 dot.cshrc \
501.1Scgd		    ${DESTDIR}/root/.cshrc; \
511.1Scgd		install -c -o root -g wheel -m 644 dot.klogin \
521.1Scgd		    ${DESTDIR}/root/.klogin; \
531.1Scgd		install -c -o root -g wheel -m 644 dot.login \
541.1Scgd		    ${DESTDIR}/root/.login; \
551.1Scgd		install -c -o root -g wheel -m 644 dot.profile \
561.1Scgd		    ${DESTDIR}/root/.profile; \
571.1Scgd		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
581.1Scgd		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
591.1Scgd		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
601.1Scgd	cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
611.1Scgd	    ${DESTDIR}/etc/mtree
621.1Scgd	cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
631.1Scgd	    ${DESTDIR}/etc/namedb
641.19Sderaadt	/bin/rm -f ${DESTDIR}/etc/localtime
651.19Sderaadt	ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
661.1Scgd	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
671.32Sjtc		${DESTDIR}/etc/dumpdates
681.44Sderaadt	install -c -o ${BINOWN} -g operator -m 644 /dev/null \
691.44Sderaadt		${DESTDIR}/etc/skeykeys
701.38Scgd	install -c -o root -g wheel -m 600 /dev/null \
711.38Scgd		${DESTDIR}/var/cron/log
721.16Scgd	install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
731.32Sjtc		${DESTDIR}/var/db/locate.database
741.32Sjtc	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
751.32Sjtc		${DESTDIR}/var/log/lastlog
761.32Sjtc	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
771.32Sjtc		${DESTDIR}/var/log/lpd-errs
781.1Scgd	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
791.32Sjtc		${DESTDIR}/var/log/maillog
801.1Scgd	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
811.32Sjtc		${DESTDIR}/var/log/messages
821.1Scgd	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
831.32Sjtc		${DESTDIR}/var/log/wtmp
841.39Scgd	install -c -o daemon -g staff -m 664 /dev/null \
851.39Scgd		${DESTDIR}/var/msgs/bounds
861.1Scgd	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
871.32Sjtc		${DESTDIR}/var/run/utmp
881.1Scgd	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
891.6Scgd	    fstab.* ${DESTDIR}/etc)
901.1Scgd.if ${MACHINE} == "tahoe"
911.1Scgd	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
921.1Scgd	    ${DESTDIR}/)
931.1Scgd.endif
941.1Scgd.if ${MACHINE} == "vax"
951.1Scgd	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
961.1Scgd	    ${DESTDIR}/)
971.1Scgd.endif
981.35Scgd	(cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
991.1Scgd
1001.1Scgdhcx9-distribution:
1011.1Scgd	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
1021.1Scgd	    ${DESTDIR}/)
1031.1Scgd
1041.7Scgddistrib-dirs:
1051.37Scgd	install -d -o root -g wheel -m 755 ${DESTDIR}
1061.30Sjtc	mtree -u -d -p ${DESTDIR}/ -f ${.CURDIR}/mtree/BSD.root.dist
1071.31Sjtc	mtree -u -d -p ${DESTDIR}/usr -f ${.CURDIR}/mtree/BSD.usr.dist
1081.30Sjtc	mtree -u -d -p ${DESTDIR}/var -f ${.CURDIR}/mtree/BSD.var.dist
1091.28Sjtc	cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
1101.41Scgd
1111.41Scgdsnapshot: distribution snap_pre snap_tar snap_md
1121.41Scgd	cd ${DESTDIR}/snapshot && cksum * > CKSUMS
1131.41Scgd
1141.41Scgdsnap_pre:
1151.41Scgd	/bin/rm -rf ${DESTDIR}/snapshot
1161.41Scgd	install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
1171.41Scgd
1181.41Scgdsnap_tar:
1191.41Scgd	cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
1201.41Scgd	cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
1211.41Scgd	cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
1221.41Scgd	    gzip -9 > snapshot/etc.tar.gz
1231.41Scgd	cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
1241.41Scgd	cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
1251.41Scgd	cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
1261.41Scgd	    snapshot/usr.games.tar.gz
1271.41Scgd	cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
1281.41Scgd	    snapshot/usr.include.tar.gz
1291.41Scgd	cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
1301.41Scgd	cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
1311.41Scgd	    snapshot/usr.libexec.tar.gz
1321.41Scgd	cd ${DESTDIR} && tar cf - usr/mdec usr/local usr/src usr/obj | \
1331.41Scgd	    gzip -9 > snapshot/usr.misc.tar.gz
1341.41Scgd	cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
1351.41Scgd	cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
1361.41Scgd	    snapshot/usr.share.tar.gz
1371.41Scgd	cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
1381.41Scgd
1391.41Scgdsnap_md:
1401.41Scgd# nothing here -- look in the machine-dependent Makefile.inc
1411.41Scgd
1421.34Scgd.endif	# DESTDIR check
1431.7Scgd
1441.1Scgd.include <bsd.prog.mk>
145