Makefile revision 1.62
11.62Sperry# $NetBSD: Makefile,v 1.62 1997/01/16 23:10:43 perry Exp $ 21.24Smycroft# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 31.1Scgd 41.23ScgdTZDIR= /usr/share/zoneinfo 51.19SderaadtLOCALTIME= US/Pacific 61.19Sderaadt 71.55Sperry# setting NOOBJ prevents "make obj" from doing anything; 81.55Sperry# an objdir would break the installation stuff below 91.1ScgdNOOBJ= oobj 101.1Scgd 111.32Sjtc.if exists(etc.${MACHINE}/Makefile.inc) 121.34Scgd.include "etc.${MACHINE}/Makefile.inc" 131.32Sjtc.endif 141.32Sjtc 151.21Scgd# -rw-r--r-- 161.21ScgdBINOWN= root 171.21ScgdBINGRP= wheel 181.45ScgdBIN1= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \ 191.60Smrg daily.conf dm.conf floppytab ftpusers ftpchroot gettytab group hosts \ 201.60Smrg hosts.equiv hosts.lpd inetd.conf lkm.conf man.conf monthly \ 211.60Smrg monthly.conf motd mrouted.conf myname netstart networks \ 221.60Smrg newsyslog.conf phones printcap protocols rbootd.conf rc rc.conf \ 231.61Sthorpej rc.lkm rc.local remote rpc security security.conf services shells \ 241.60Smrg syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \ 251.60Smrg etc.${MACHINE}/disktab 261.1Scgd 271.46Sderaadt# -rw-rw-r-- 281.1ScgdBIN2= motd 291.1Scgd 301.1ScgdNAMEDB= localhost.rev named.boot root.cache 311.1ScgdPCS= pcs750.bin 321.1Scgd 331.53Scgdall clean cleandir depend etc includes install lint: 341.1Scgd 351.34Scgd.ifndef DESTDIR 361.41Scgddistribution distrib-dirs snapshot: 371.36Scgd @echo setenv DESTDIR before doing that! 381.34Scgd @false 391.34Scgd.else 401.7Scgddistribution: distrib-dirs 411.53Scgd (cd ..; ${MAKE} includes) 421.32Sjtc (cd ..; ${MAKE} install) 431.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 441.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 451.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 crontab \ 461.56Sthorpej ${DESTDIR}/var/cron/tabs/root 471.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 481.32Sjtc chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd 491.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 501.1Scgd MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 511.1Scgd (cd root; \ 521.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 531.1Scgd ${DESTDIR}/root/.cshrc; \ 541.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.klogin \ 551.1Scgd ${DESTDIR}/root/.klogin; \ 561.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 571.1Scgd ${DESTDIR}/root/.login; \ 581.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 591.1Scgd ${DESTDIR}/root/.profile; \ 601.1Scgd rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 611.1Scgd ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 621.1Scgd ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 631.47Scgd (cd mtree; \ 641.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 special \ 651.47Scgd ${DESTDIR}/etc/mtree; \ 661.56Sthorpej ${INSTALL} -c -o root -g wheel -m 444 4.4BSD.dist \ 671.47Scgd ${DESTDIR}/etc/mtree) 681.56Sthorpej cd namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 691.1Scgd ${DESTDIR}/etc/namedb 701.19Sderaadt /bin/rm -f ${DESTDIR}/etc/localtime 711.19Sderaadt ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 721.48Sderaadt /bin/rm -f ${DESTDIR}/etc/rmt 731.48Sderaadt ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 741.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 751.32Sjtc ${DESTDIR}/etc/dumpdates 761.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 771.44Sderaadt ${DESTDIR}/etc/skeykeys 781.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 791.38Scgd ${DESTDIR}/var/cron/log 801.56Sthorpej ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 811.32Sjtc ${DESTDIR}/var/db/locate.database 821.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 831.32Sjtc ${DESTDIR}/var/log/lastlog 841.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 851.32Sjtc ${DESTDIR}/var/log/lpd-errs 861.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 871.32Sjtc ${DESTDIR}/var/log/maillog 881.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 891.32Sjtc ${DESTDIR}/var/log/messages 901.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 911.58Slukem ${DESTDIR}/var/log/secure 921.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 931.32Sjtc ${DESTDIR}/var/log/wtmp 941.56Sthorpej ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 951.39Scgd ${DESTDIR}/var/msgs/bounds 961.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 971.32Sjtc ${DESTDIR}/var/run/utmp 981.56Sthorpej (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 991.6Scgd fstab.* ${DESTDIR}/etc) 1001.49Stls (cd ${DESTDIR}/dev; ./MAKEDEV all) 1011.62Sperry (cd ../usr.bin/mail; ${MAKE} distribution) 1021.35Scgd (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 1031.1Scgd 1041.1Scgd 1051.7Scgddistrib-dirs: 1061.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 1071.47Scgd -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u 1081.28Sjtc cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 1091.41Scgd 1101.41Scgdsnapshot: distribution snap_pre snap_tar snap_md 1111.41Scgd cd ${DESTDIR}/snapshot && cksum * > CKSUMS 1121.41Scgd 1131.41Scgdsnap_pre: 1141.41Scgd /bin/rm -rf ${DESTDIR}/snapshot 1151.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 1161.41Scgd 1171.41Scgdsnap_tar: 1181.41Scgd cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 1191.41Scgd cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 1201.41Scgd cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 1211.41Scgd gzip -9 > snapshot/etc.tar.gz 1221.41Scgd cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 1231.41Scgd cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 1241.41Scgd cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 1251.41Scgd snapshot/usr.games.tar.gz 1261.41Scgd cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 1271.41Scgd snapshot/usr.include.tar.gz 1281.41Scgd cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 1291.41Scgd cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 1301.41Scgd snapshot/usr.libexec.tar.gz 1311.51Spk cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 1321.51Spk usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 1331.41Scgd cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 1341.41Scgd cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 1351.41Scgd snapshot/usr.share.tar.gz 1361.41Scgd cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 1371.41Scgd 1381.41Scgdsnap_md: 1391.41Scgd# nothing here -- look in the machine-dependent Makefile.inc 1401.41Scgd 1411.34Scgd.endif # DESTDIR check 1421.7Scgd 1431.1Scgd.include <bsd.prog.mk> 144