Makefile revision 1.70
11.70Scjs# $NetBSD: Makefile,v 1.70 1997/05/26 03:55:43 cjs Exp $ 21.66Smikel# from: @(#)Makefile 8.7 (Berkeley) 5/25/95 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.70Scjs.include <bsd.own.mk> # for BUILDDIR and configs 121.32Sjtc 131.21Scgd# -rw-r--r-- 141.21ScgdBINOWN= root 151.21ScgdBINGRP= wheel 161.45ScgdBIN1= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \ 171.65Smikel daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 181.65Smikel gettytab group hosts hosts.equiv hosts.lpd inetd.conf lkm.conf \ 191.65Smikel man.conf monthly monthly.conf mrouted.conf myname netstart networks \ 201.60Smrg newsyslog.conf phones printcap protocols rbootd.conf rc rc.conf \ 211.61Sthorpej rc.lkm rc.local remote rpc security security.conf services shells \ 221.60Smrg syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \ 231.60Smrg etc.${MACHINE}/disktab 241.1Scgd 251.46Sderaadt# -rw-rw-r-- 261.1ScgdBIN2= motd 271.1Scgd 281.1ScgdNAMEDB= localhost.rev named.boot root.cache 291.1ScgdPCS= pcs750.bin 301.1Scgd 311.53Scgdall clean cleandir depend etc includes install lint: 321.1Scgd 331.34Scgd.ifndef DESTDIR 341.41Scgddistribution distrib-dirs snapshot: 351.36Scgd @echo setenv DESTDIR before doing that! 361.34Scgd @false 371.34Scgd.else 381.7Scgddistribution: distrib-dirs 391.53Scgd (cd ..; ${MAKE} includes) 401.32Sjtc (cd ..; ${MAKE} install) 411.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 421.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 431.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 crontab \ 441.56Sthorpej ${DESTDIR}/var/cron/tabs/root 451.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 461.68Sperry pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 471.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 481.1Scgd MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 491.1Scgd (cd root; \ 501.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 511.1Scgd ${DESTDIR}/root/.cshrc; \ 521.65Smikel ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \ 531.1Scgd ${DESTDIR}/root/.klogin; \ 541.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 551.1Scgd ${DESTDIR}/root/.login; \ 561.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 571.1Scgd ${DESTDIR}/root/.profile; \ 581.1Scgd rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 591.1Scgd ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 601.1Scgd ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 611.47Scgd (cd mtree; \ 621.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 special \ 631.47Scgd ${DESTDIR}/etc/mtree; \ 641.67Sperry ${INSTALL} -c -o root -g wheel -m 444 NetBSD.dist \ 651.47Scgd ${DESTDIR}/etc/mtree) 661.63Smikel (cd namedb; \ 671.63Smikel ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 681.64Spk ${DESTDIR}/etc/namedb) 691.19Sderaadt /bin/rm -f ${DESTDIR}/etc/localtime 701.19Sderaadt ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 711.48Sderaadt /bin/rm -f ${DESTDIR}/etc/rmt 721.48Sderaadt ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 731.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 741.32Sjtc ${DESTDIR}/etc/dumpdates 751.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 761.44Sderaadt ${DESTDIR}/etc/skeykeys 771.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 781.38Scgd ${DESTDIR}/var/cron/log 791.56Sthorpej ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 801.32Sjtc ${DESTDIR}/var/db/locate.database 811.69Sperry ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 821.69Sperry ${DESTDIR}/var/log/authlog 831.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 841.32Sjtc ${DESTDIR}/var/log/lastlog 851.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 861.32Sjtc ${DESTDIR}/var/log/lpd-errs 871.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 881.32Sjtc ${DESTDIR}/var/log/maillog 891.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 901.32Sjtc ${DESTDIR}/var/log/messages 911.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 921.58Slukem ${DESTDIR}/var/log/secure 931.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 941.32Sjtc ${DESTDIR}/var/log/wtmp 951.69Sperry ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 961.69Sperry ${DESTDIR}/var/log/xferlog 971.56Sthorpej ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 981.39Scgd ${DESTDIR}/var/msgs/bounds 991.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 1001.32Sjtc ${DESTDIR}/var/run/utmp 1011.56Sthorpej (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1021.6Scgd fstab.* ${DESTDIR}/etc) 1031.49Stls (cd ${DESTDIR}/dev; ./MAKEDEV all) 1041.62Sperry (cd ../usr.bin/mail; ${MAKE} distribution) 1051.35Scgd (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 1061.1Scgd 1071.1Scgd 1081.7Scgddistrib-dirs: 1091.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 1101.67Sperry -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 1111.28Sjtc cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 1121.41Scgd 1131.41Scgdsnapshot: distribution snap_pre snap_tar snap_md 1141.41Scgd cd ${DESTDIR}/snapshot && cksum * > CKSUMS 1151.41Scgd 1161.41Scgdsnap_pre: 1171.41Scgd /bin/rm -rf ${DESTDIR}/snapshot 1181.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 1191.41Scgd 1201.41Scgdsnap_tar: 1211.41Scgd cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 1221.41Scgd cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 1231.41Scgd cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 1241.41Scgd gzip -9 > snapshot/etc.tar.gz 1251.41Scgd cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 1261.41Scgd cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 1271.41Scgd cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 1281.41Scgd snapshot/usr.games.tar.gz 1291.41Scgd cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 1301.41Scgd snapshot/usr.include.tar.gz 1311.41Scgd cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 1321.41Scgd cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 1331.41Scgd snapshot/usr.libexec.tar.gz 1341.51Spk cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 1351.51Spk usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 1361.41Scgd cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 1371.41Scgd cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 1381.41Scgd snapshot/usr.share.tar.gz 1391.41Scgd cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 1401.41Scgd 1411.41Scgdsnap_md: 1421.41Scgd# nothing here -- look in the machine-dependent Makefile.inc 1431.41Scgd 1441.34Scgd.endif # DESTDIR check 1451.7Scgd 1461.1Scgd.include <bsd.prog.mk> 147