Makefile revision 1.87
1# $NetBSD: Makefile,v 1.87 1998/07/22 16:37:54 perry 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.if !defined(INSTALL_DONE) 51 (cd ..; ${MAKE} includes) 52 (cd ..; ${MAKE} install) 53.endif 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 55 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc 56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 ${BIN3} ${DESTDIR}/etc 57 ${INSTALL} -c -o root -g wheel -m 600 crontab \ 58 ${DESTDIR}/var/cron/tabs/root 59 ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 60 pwd_mkdb -p -d ${DESTDIR}/ ${DESTDIR}/etc/master.passwd 61 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 62 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 63 ${INSTALL} -c -o root -g wheel -m 600 minfree \ 64 ${DESTDIR}/var/crash 65 (cd root; \ 66 ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \ 67 ${DESTDIR}/root/.cshrc; \ 68 ${INSTALL} -c -o root -g wheel -m 600 dot.klogin \ 69 ${DESTDIR}/root/.klogin; \ 70 ${INSTALL} -c -o root -g wheel -m 644 dot.login \ 71 ${DESTDIR}/root/.login; \ 72 ${INSTALL} -c -o root -g wheel -m 644 dot.profile \ 73 ${DESTDIR}/root/.profile; \ 74 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 75 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 76 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 77 (cd mtree; ${MAKE} install) 78 (cd namedb; \ 79 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 80 ${DESTDIR}/etc/namedb) 81 /bin/rm -f ${DESTDIR}/etc/localtime 82 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 83 /bin/rm -f ${DESTDIR}/etc/rmt 84 ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt 85 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 86 ${DESTDIR}/etc/dumpdates 87 ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \ 88 ${DESTDIR}/etc/skeykeys 89 ${INSTALL} -c -o root -g wheel -m 600 /dev/null \ 90 ${DESTDIR}/var/cron/log 91 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 92 ${DESTDIR}/var/db/locate.database 93 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 94 ${DESTDIR}/var/log/authlog 95 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 96 ${DESTDIR}/var/log/lastlog 97 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 98 ${DESTDIR}/var/log/lpd-errs 99 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 100 ${DESTDIR}/var/log/maillog 101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 102 ${DESTDIR}/var/log/messages 103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 104 ${DESTDIR}/var/log/secure 105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 106 ${DESTDIR}/var/log/wtmp 107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 108 ${DESTDIR}/var/log/xferlog 109 ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \ 110 ${DESTDIR}/var/msgs/bounds 111 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 112 ${DESTDIR}/var/run/utmp 113 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 114 ${DESTDIR}/var/games/atc_scores 115 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 116 ${DESTDIR}/var/games/battlestar.log 117 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 118 ${DESTDIR}/var/games/cfscores 119 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 120 ${DESTDIR}/var/games/criblog 121 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 122 ${DESTDIR}/var/games/robots_roll 123 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 124 ${DESTDIR}/var/games/rogue.scores 125 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 126 ${DESTDIR}/var/games/saillog 127 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 128 ${DESTDIR}/var/games/snakerawscores 129 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 130 ${DESTDIR}/var/games/snake.log 131 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 132 ${DESTDIR}/var/games/tetris.scores 133 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 134 ${DESTDIR}/var/games/larn/llog12.0 135 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 136 ${DESTDIR}/var/games/larn/lscore12.0 137 ${INSTALL} -c -o games -g games -m 664 /dev/null \ 138 ${DESTDIR}/var/games/larn/playerids 139 (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 140 fstab.* ${DESTDIR}/etc) 141 (cd ${DESTDIR}/dev; ./MAKEDEV all) 142 (cd ../usr.bin/mail; ${MAKE} distribution) 143 (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution) 144 145 146distrib-dirs: 147 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR} 148 -mtree -def mtree/NetBSD.dist -p ${DESTDIR}/ -u 149 cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys 150 151snapshot: distribution snap_pre snap_tar snap_md 152 cd ${DESTDIR}/snapshot && cksum * > CKSUMS 153 154snap_pre: 155 /bin/rm -rf ${DESTDIR}/snapshot 156 ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot 157 158snap_tar: 159 cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz 160 cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz 161 cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \ 162 gzip -9 > snapshot/etc.tar.gz 163 cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz 164 cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz 165 cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \ 166 snapshot/usr.games.tar.gz 167 cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \ 168 snapshot/usr.include.tar.gz 169 cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz 170 cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \ 171 snapshot/usr.libexec.tar.gz 172 cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \ 173 usr/obj | gzip -9 > snapshot/usr.misc.tar.gz 174 cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz 175 cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \ 176 snapshot/usr.share.tar.gz 177 cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz 178 179snap_md: 180# nothing here -- look in the machine-dependent Makefile.inc 181 182.endif # DESTDIR check 183 184.include <bsd.prog.mk> 185