Makefile revision 1.80
11.80Sjonathan# $NetBSD: Makefile,v 1.80 1997/11/11 04:37:17 jonathan 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.80Sjonathan# MD Makefile.inc may append MD targets to BIN[123]. Make sure all 121.80Sjonathan# are empty, to preserve the old semantics of setting them below with "=". 131.80SjonathanBIN1= 141.80SjonathanBIN2= 151.80SjonathanBIN3= 161.80Sjonathan 171.71Scjs.if exists(etc.${MACHINE}/Makefile.inc) 181.71Scjs.include "etc.${MACHINE}/Makefile.inc" 191.71Scjs.endif 201.32Sjtc 211.21Scgd# -rw-r--r-- 221.21ScgdBINOWN= root 231.21ScgdBINGRP= wheel 241.80SjonathanBIN1+= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \ 251.65Smikel daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 261.77Smycroft gettytab group hosts hosts.lpd inetd.conf lkm.conf \ 271.75Smycroft man.conf monthly monthly.conf mrouted.conf netstart networks \ 281.76Smycroft newsyslog.conf phones printcap profile protocols rbootd.conf rc \ 291.74Sveego rc.conf rc.lkm rc.local rc.subr remote rpc security security.conf \ 301.74Sveego services shells syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \ 311.60Smrg etc.${MACHINE}/disktab 321.1Scgd 331.46Sderaadt# -rw-rw-r-- 341.80SjonathanBIN2+= motd 351.1Scgd 361.77Smycroft# -rw------- 371.80SjonathanBIN3+= hosts.equiv 381.77Smycroft 391.1ScgdNAMEDB= localhost.rev named.boot root.cache 401.1ScgdPCS= pcs750.bin 411.1Scgd 421.53Scgdall clean cleandir depend etc includes install lint: 431.1Scgd 441.34Scgd.ifndef DESTDIR 451.41Scgddistribution distrib-dirs snapshot: 461.36Scgd @echo setenv DESTDIR before doing that! 471.34Scgd @false 481.34Scgd.else 491.7Scgddistribution: distrib-dirs 501.53Scgd (cd ..; ${MAKE} includes) 511.32Sjtc (cd ..; ${MAKE} install) 521.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 531.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 541.77Smycroft ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} ${DESTDIR}/etc 551.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 crontab \ 561.56Sthorpej ${DESTDIR}/var/cron/tabs/root 571.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 581.68Sperry pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 591.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 601.1Scgd MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 611.73Sperry ${INSTALL} -c -o root -g wheel -m 600 minfree \ 621.73Sperry ${DESTDIR}/var/crash 631.1Scgd (cd root; \ 641.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 651.1Scgd ${DESTDIR}/root/.cshrc; \ 661.65Smikel ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \ 671.1Scgd ${DESTDIR}/root/.klogin; \ 681.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 691.1Scgd ${DESTDIR}/root/.login; \ 701.56Sthorpej ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 711.1Scgd ${DESTDIR}/root/.profile; \ 721.1Scgd rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 731.1Scgd ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 741.1Scgd ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 751.47Scgd (cd mtree; \ 761.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 special \ 771.47Scgd ${DESTDIR}/etc/mtree; \ 781.67Sperry ${INSTALL} -c -o root -g wheel -m 444 NetBSD.dist \ 791.79Schuck ${DESTDIR}/etc/mtree; \ 801.78Shubertf ${INSTALL} -c -o root -g wheel -m 444 BSD.pkg.dist \ 811.47Scgd ${DESTDIR}/etc/mtree) 821.63Smikel (cd namedb; \ 831.63Smikel ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 841.64Spk ${DESTDIR}/etc/namedb) 851.19Sderaadt /bin/rm -f ${DESTDIR}/etc/localtime 861.19Sderaadt ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 871.48Sderaadt /bin/rm -f ${DESTDIR}/etc/rmt 881.48Sderaadt ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 891.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 901.32Sjtc ${DESTDIR}/etc/dumpdates 911.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 921.44Sderaadt ${DESTDIR}/etc/skeykeys 931.56Sthorpej ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 941.38Scgd ${DESTDIR}/var/cron/log 951.56Sthorpej ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 961.32Sjtc ${DESTDIR}/var/db/locate.database 971.69Sperry ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 981.69Sperry ${DESTDIR}/var/log/authlog 991.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 1001.32Sjtc ${DESTDIR}/var/log/lastlog 1011.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 1021.32Sjtc ${DESTDIR}/var/log/lpd-errs 1031.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 1041.32Sjtc ${DESTDIR}/var/log/maillog 1051.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 1061.32Sjtc ${DESTDIR}/var/log/messages 1071.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 1081.58Slukem ${DESTDIR}/var/log/secure 1091.58Slukem ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 1101.32Sjtc ${DESTDIR}/var/log/wtmp 1111.69Sperry ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 1121.69Sperry ${DESTDIR}/var/log/xferlog 1131.56Sthorpej ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 1141.39Scgd ${DESTDIR}/var/msgs/bounds 1151.56Sthorpej ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 1161.32Sjtc ${DESTDIR}/var/run/utmp 1171.56Sthorpej (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1181.6Scgd fstab.* ${DESTDIR}/etc) 1191.49Stls (cd ${DESTDIR}/dev; ./MAKEDEV all) 1201.62Sperry (cd ../usr.bin/mail; ${MAKE} distribution) 1211.35Scgd (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 1221.1Scgd 1231.1Scgd 1241.7Scgddistrib-dirs: 1251.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 1261.67Sperry -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 1271.28Sjtc cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 1281.41Scgd 1291.41Scgdsnapshot: distribution snap_pre snap_tar snap_md 1301.41Scgd cd ${DESTDIR}/snapshot && cksum * > CKSUMS 1311.41Scgd 1321.41Scgdsnap_pre: 1331.41Scgd /bin/rm -rf ${DESTDIR}/snapshot 1341.56Sthorpej ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 1351.41Scgd 1361.41Scgdsnap_tar: 1371.41Scgd cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 1381.41Scgd cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 1391.41Scgd cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 1401.41Scgd gzip -9 > snapshot/etc.tar.gz 1411.41Scgd cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 1421.41Scgd cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 1431.41Scgd cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 1441.41Scgd snapshot/usr.games.tar.gz 1451.41Scgd cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 1461.41Scgd snapshot/usr.include.tar.gz 1471.41Scgd cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 1481.41Scgd cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 1491.41Scgd snapshot/usr.libexec.tar.gz 1501.51Spk cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 1511.51Spk usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 1521.41Scgd cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 1531.41Scgd cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 1541.41Scgd snapshot/usr.share.tar.gz 1551.41Scgd cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 1561.41Scgd 1571.41Scgdsnap_md: 1581.41Scgd# nothing here -- look in the machine-dependent Makefile.inc 1591.41Scgd 1601.34Scgd.endif # DESTDIR check 1611.7Scgd 1621.1Scgd.include <bsd.prog.mk> 163