Makefile revision 1.86
1# $NetBSD: Makefile,v 1.86 1997/12/22 05:58:58 mikel Exp $ 2# from: @(#)Makefile 8.7 (Berkeley) 5/25/95 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# MD Makefile.inc may append MD targets to BIN[123]. Make sure all 12# are empty, to preserve the old semantics of setting them below with "=". 13BIN1= 14BIN2= 15BIN3= 16 17.if exists(etc.${MACHINE}/Makefile.inc) 18.include "etc.${MACHINE}/Makefile.inc" 19.endif 20 21# -rw-r--r-- 22BINOWN= root 23BINGRP= wheel 24BIN1+= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \ 25 daily.conf dm.conf floppytab ftpchroot ftpusers ftpwelcome \ 26 gettytab group hosts hosts.lpd inetd.conf ld.so.conf lkm.conf \ 27 man.conf monthly monthly.conf mrouted.conf netstart networks \ 28 newsyslog.conf phones printcap profile protocols rbootd.conf rc \ 29 rc.conf rc.lkm rc.local rc.subr remote rpc security security.conf \ 30 services shells syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \ 31 etc.${MACHINE}/disktab 32 33# -rw-rw-r-- 34BIN2+= motd 35 36# -rw------- 37BIN3+= hosts.equiv 38 39NAMEDB= localhost.rev named.boot root.cache 40PCS= pcs750.bin 41 42all clean cleandir depend etc includes install lint: 43 44.ifndef DESTDIR 45distribution distrib-dirs snapshot: 46 @echo setenv DESTDIR before doing that! 47 @false 48.else 49distribution: distrib-dirs 50 (cd ..; ${MAKE} includes) 51 (cd ..; ${MAKE} install) 52 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} ${DESTDIR}/etc 55 ${INSTALL} -c -o root -g wheel -m 600 crontab \ 56 ${DESTDIR}/var/cron/tabs/root 57 ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 58 pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 59 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 60 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 61 ${INSTALL} -c -o root -g wheel -m 600 minfree \ 62 ${DESTDIR}/var/crash 63 (cd root; \ 64 ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 65 ${DESTDIR}/root/.cshrc; \ 66 ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \ 67 ${DESTDIR}/root/.klogin; \ 68 ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 69 ${DESTDIR}/root/.login; \ 70 ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 71 ${DESTDIR}/root/.profile; \ 72 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 73 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 74 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 75 (cd mtree; ${MAKE} install) 76 (cd namedb; \ 77 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 78 ${DESTDIR}/etc/namedb) 79 /bin/rm -f ${DESTDIR}/etc/localtime 80 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 81 /bin/rm -f ${DESTDIR}/etc/rmt 82 ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 83 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 84 ${DESTDIR}/etc/dumpdates 85 ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 86 ${DESTDIR}/etc/skeykeys 87 ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 88 ${DESTDIR}/var/cron/log 89 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 90 ${DESTDIR}/var/db/locate.database 91 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 92 ${DESTDIR}/var/log/authlog 93 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 94 ${DESTDIR}/var/log/lastlog 95 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 96 ${DESTDIR}/var/log/lpd-errs 97 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 98 ${DESTDIR}/var/log/maillog 99 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 100 ${DESTDIR}/var/log/messages 101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 102 ${DESTDIR}/var/log/secure 103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 104 ${DESTDIR}/var/log/wtmp 105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 106 ${DESTDIR}/var/log/xferlog 107 ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 108 ${DESTDIR}/var/msgs/bounds 109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 110 ${DESTDIR}/var/run/utmp 111 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 112 ${DESTDIR}/var/games/atc_scores 113 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 114 ${DESTDIR}/var/games/battlestar.log 115 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 116 ${DESTDIR}/var/games/cfscores 117 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 118 ${DESTDIR}/var/games/criblog 119 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 120 ${DESTDIR}/var/games/robots_roll 121 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 122 ${DESTDIR}/var/games/rogue.scores 123 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 124 ${DESTDIR}/var/games/saillog 125 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 126 ${DESTDIR}/var/games/snakerawscores 127 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 128 ${DESTDIR}/var/games/snake.log 129 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 130 ${DESTDIR}/var/games/tetris.scores 131 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 132 ${DESTDIR}/var/games/larn/llog12.0 133 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 134 ${DESTDIR}/var/games/larn/lscore12.0 135 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 136 ${DESTDIR}/var/games/larn/playerids 137 (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 138 fstab.* ${DESTDIR}/etc) 139 (cd ${DESTDIR}/dev; ./MAKEDEV all) 140 (cd ../usr.bin/mail; ${MAKE} distribution) 141 (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 142 143 144distrib-dirs: 145 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 146 -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 147 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 148 149snapshot: distribution snap_pre snap_tar snap_md 150 cd ${DESTDIR}/snapshot && cksum * > CKSUMS 151 152snap_pre: 153 /bin/rm -rf ${DESTDIR}/snapshot 154 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 155 156snap_tar: 157 cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 158 cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 159 cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 160 gzip -9 > snapshot/etc.tar.gz 161 cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 162 cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 163 cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 164 snapshot/usr.games.tar.gz 165 cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 166 snapshot/usr.include.tar.gz 167 cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 168 cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 169 snapshot/usr.libexec.tar.gz 170 cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 171 usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 172 cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 173 cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 174 snapshot/usr.share.tar.gz 175 cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 176 177snap_md: 178# nothing here -- look in the machine-dependent Makefile.inc 179 180.endif # DESTDIR check 181 182.include <bsd.prog.mk> 183