Makefile revision 1.59
1# $NetBSD: Makefile,v 1.59 1996/11/29 16:31:55 jtk Exp $ 2# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 3 4TZDIR= /usr/share/zoneinfo 5LOCALTIME= US/Pacific 6 7# setting NOOBJ prevents "make obj" from doing anything; 8# an objdir would break the installation stuff below 9NOOBJ= oobj 10 11.if exists(etc.${MACHINE}/Makefile.inc) 12.include "etc.${MACHINE}/Makefile.inc" 13.endif 14 15# -rw-r--r-- 16BINOWN= root 17BINGRP= wheel 18BIN1= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \ 19 dm.conf floppytab ftpusers ftpchroot gettytab group hosts hosts.equiv \ 20 hosts.lpd inetd.conf man.conf monthly motd mrouted.conf myname \ 21 netstart networks newsyslog.conf phones printcap protocols \ 22 rbootd.conf rc rc.local remote rpc security services shells \ 23 syslog.conf weekly etc.${MACHINE}/ttys etc.${MACHINE}/disktab 24 25# -rw-rw-r-- 26BIN2= motd 27 28NAMEDB= localhost.rev named.boot root.cache 29PCS= pcs750.bin 30 31all clean cleandir depend etc includes install lint: 32 33.ifndef DESTDIR 34distribution distrib-dirs snapshot: 35 @echo setenv DESTDIR before doing that! 36 @false 37.else 38distribution: distrib-dirs 39 (cd ..; ${MAKE} includes) 40 (cd ..; ${MAKE} install) 41 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 42 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 43 ${INSTALL} -c -o root -g wheel -m 600 crontab \ 44 ${DESTDIR}/var/cron/tabs/root 45 ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 46 chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd 47 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 48 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 49 (cd root; \ 50 ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 51 ${DESTDIR}/root/.cshrc; \ 52 ${INSTALL} -c -o root -g wheel -m 644 dot.klogin \ 53 ${DESTDIR}/root/.klogin; \ 54 ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 55 ${DESTDIR}/root/.login; \ 56 ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 57 ${DESTDIR}/root/.profile; \ 58 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 59 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 60 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 61 (cd mtree; \ 62 ${INSTALL} -c -o root -g wheel -m 600 special \ 63 ${DESTDIR}/etc/mtree; \ 64 ${INSTALL} -c -o root -g wheel -m 444 4.4BSD.dist \ 65 ${DESTDIR}/etc/mtree) 66 cd namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 67 ${DESTDIR}/etc/namedb 68 /bin/rm -f ${DESTDIR}/etc/localtime 69 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 70 /bin/rm -f ${DESTDIR}/etc/rmt 71 ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 72 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 73 ${DESTDIR}/etc/dumpdates 74 ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 75 ${DESTDIR}/etc/skeykeys 76 ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 77 ${DESTDIR}/var/cron/log 78 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 79 ${DESTDIR}/var/db/locate.database 80 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 81 ${DESTDIR}/var/log/lastlog 82 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 83 ${DESTDIR}/var/log/lpd-errs 84 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 85 ${DESTDIR}/var/log/maillog 86 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 87 ${DESTDIR}/var/log/messages 88 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 89 ${DESTDIR}/var/log/secure 90 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 91 ${DESTDIR}/var/log/wtmp 92 ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 93 ${DESTDIR}/var/msgs/bounds 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 95 ${DESTDIR}/var/run/utmp 96 (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 97 fstab.* ${DESTDIR}/etc) 98 (cd ${DESTDIR}/dev; ./MAKEDEV all) 99 (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 100 101 102distrib-dirs: 103 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 104 -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u 105 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 106 107snapshot: distribution snap_pre snap_tar snap_md 108 cd ${DESTDIR}/snapshot && cksum * > CKSUMS 109 110snap_pre: 111 /bin/rm -rf ${DESTDIR}/snapshot 112 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 113 114snap_tar: 115 cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 116 cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 117 cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 118 gzip -9 > snapshot/etc.tar.gz 119 cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 120 cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 121 cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 122 snapshot/usr.games.tar.gz 123 cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 124 snapshot/usr.include.tar.gz 125 cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 126 cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 127 snapshot/usr.libexec.tar.gz 128 cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 129 usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 130 cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 131 cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 132 snapshot/usr.share.tar.gz 133 cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 134 135snap_md: 136# nothing here -- look in the machine-dependent Makefile.inc 137 138.endif # DESTDIR check 139 140.include <bsd.prog.mk> 141