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