Makefile revision 1.78
11.78Shubertf# $NetBSD: Makefile,v 1.78 1997/10/19 15:27:25 hubertf 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.71Scjs.if exists(etc.${MACHINE}/Makefile.inc) 121.71Scjs.include "etc.${MACHINE}/Makefile.inc" 131.71Scjs.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.65Smikel daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 201.77Smycroft gettytab group hosts hosts.lpd inetd.conf lkm.conf \ 211.75Smycroft man.conf monthly monthly.conf mrouted.conf netstart networks \ 221.76Smycroft newsyslog.conf phones printcap profile protocols rbootd.conf rc \ 231.74Sveego rc.conf rc.lkm rc.local rc.subr remote rpc security security.conf \ 241.74Sveego services shells 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.77Smycroft# -rw------- 311.77SmycroftBIN3= hosts.equiv 321.77Smycroft 331.1ScgdNAMEDB= localhost.rev named.boot root.cache 341.1ScgdPCS= pcs750.bin 351.1Scgd 361.53Scgdall clean cleandir depend etc includes install lint: 371.1Scgd 381.34Scgd.ifndef DESTDIR 391.41Scgddistribution distrib-dirs snapshot: 401.36Scgd @echo setenv DESTDIR before doing that! 411.34Scgd @false 421.34Scgd.else 431.7Scgddistribution: distrib-dirs 441.53Scgd (cd ..; ${MAKE} includes) 451.32Sjtc (cd ..; ${MAKE} install) 461.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 471.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 481.77Smycroft ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} ${DESTDIR}/etc 491.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 crontab \ 501.56Sthorpej ${DESTDIR}/var/cron/tabs/root 511.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 521.68Sperry pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 531.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 541.1Scgd MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 551.73Sperry ${INSTALL} -c -o root -g wheel -m 600 minfree \ 561.73Sperry ${DESTDIR}/var/crash 571.1Scgd (cd root; \ 581.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 591.1Scgd ${DESTDIR}/root/.cshrc; \ 601.65Smikel ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \ 611.1Scgd ${DESTDIR}/root/.klogin; \ 621.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 631.1Scgd ${DESTDIR}/root/.login; \ 641.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 651.1Scgd ${DESTDIR}/root/.profile; \ 661.1Scgd rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 671.1Scgd ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 681.1Scgd ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 691.47Scgd (cd mtree; \ 701.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 special \ 711.47Scgd ${DESTDIR}/etc/mtree; \ 721.67Sperry ${INSTALL} -c -o root -g wheel -m 444 NetBSD.dist \ 731.78Shubertf ${DESTDIR}/etc/mtree) 741.78Shubertf ${INSTALL} -c -o root -g wheel -m 444 BSD.pkg.dist \ 751.47Scgd ${DESTDIR}/etc/mtree) 761.63Smikel (cd namedb; \ 771.63Smikel ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 781.64Spk ${DESTDIR}/etc/namedb) 791.19Sderaadt /bin/rm -f ${DESTDIR}/etc/localtime 801.19Sderaadt ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 811.48Sderaadt /bin/rm -f ${DESTDIR}/etc/rmt 821.48Sderaadt ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 831.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 841.32Sjtc ${DESTDIR}/etc/dumpdates 851.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 861.44Sderaadt ${DESTDIR}/etc/skeykeys 871.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 881.38Scgd ${DESTDIR}/var/cron/log 891.56Sthorpej ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 901.32Sjtc ${DESTDIR}/var/db/locate.database 911.69Sperry ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 921.69Sperry ${DESTDIR}/var/log/authlog 931.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 941.32Sjtc ${DESTDIR}/var/log/lastlog 951.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 961.32Sjtc ${DESTDIR}/var/log/lpd-errs 971.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 981.32Sjtc ${DESTDIR}/var/log/maillog 991.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 1001.32Sjtc ${DESTDIR}/var/log/messages 1011.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 1021.58Slukem ${DESTDIR}/var/log/secure 1031.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 1041.32Sjtc ${DESTDIR}/var/log/wtmp 1051.69Sperry ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 1061.69Sperry ${DESTDIR}/var/log/xferlog 1071.56Sthorpej ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 1081.39Scgd ${DESTDIR}/var/msgs/bounds 1091.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 1101.32Sjtc ${DESTDIR}/var/run/utmp 1111.56Sthorpej (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1121.6Scgd fstab.* ${DESTDIR}/etc) 1131.49Stls (cd ${DESTDIR}/dev; ./MAKEDEV all) 1141.62Sperry (cd ../usr.bin/mail; ${MAKE} distribution) 1151.35Scgd (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 1161.1Scgd 1171.1Scgd 1181.7Scgddistrib-dirs: 1191.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 1201.67Sperry -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 1211.28Sjtc cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 1221.41Scgd 1231.41Scgdsnapshot: distribution snap_pre snap_tar snap_md 1241.41Scgd cd ${DESTDIR}/snapshot && cksum * > CKSUMS 1251.41Scgd 1261.41Scgdsnap_pre: 1271.41Scgd /bin/rm -rf ${DESTDIR}/snapshot 1281.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 1291.41Scgd 1301.41Scgdsnap_tar: 1311.41Scgd cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 1321.41Scgd cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 1331.41Scgd cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 1341.41Scgd gzip -9 > snapshot/etc.tar.gz 1351.41Scgd cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 1361.41Scgd cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 1371.41Scgd cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 1381.41Scgd snapshot/usr.games.tar.gz 1391.41Scgd cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 1401.41Scgd snapshot/usr.include.tar.gz 1411.41Scgd cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 1421.41Scgd cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 1431.41Scgd snapshot/usr.libexec.tar.gz 1441.51Spk cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 1451.51Spk usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 1461.41Scgd cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 1471.41Scgd cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 1481.41Scgd snapshot/usr.share.tar.gz 1491.41Scgd cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 1501.41Scgd 1511.41Scgdsnap_md: 1521.41Scgd# nothing here -- look in the machine-dependent Makefile.inc 1531.41Scgd 1541.34Scgd.endif # DESTDIR check 1551.7Scgd 1561.1Scgd.include <bsd.prog.mk> 157