Makefile revision 20979
18876Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 24Srgrimes# $Id: Makefile,v 1.145 1996/12/13 17:01:51 bde Exp $ 34Srgrimes 44Srgrimes# -rw-r--r-- 54SrgrimesBINOWN= root 64SrgrimesBINGRP= wheel 74SrgrimesBIN1= aliases amd.map csh.cshrc csh.login csh.logout dm.conf \ 84Srgrimes ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 94Srgrimes inetd.conf login.access motd modems netstart networks \ 104Srgrimes newsyslog.conf phones pccard.conf.sample printcap profile protocols \ 114Srgrimes rc rc.firewall rc.local rc.pccard rc.serial \ 124Srgrimes etc.${MACHINE}/rc.${MACHINE} \ 134Srgrimes remote security services sysconfig shells \ 144Srgrimes syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ 154Srgrimes ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 164Srgrimes ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 174Srgrimes ${.CURDIR}/../usr.bin/locate/locate/locate.rc 184Srgrimes 194Srgrimes# -rw-rw-rw- 204SrgrimesBIN2= motd 214Srgrimes 224Srgrimes# -rwxr-xr-x root.wheel, for the new cron root.wheel 234SrgrimesBIN3= daily weekly monthly pccard_ether 244Srgrimes 254SrgrimesMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist 264SrgrimesNAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 274SrgrimesPPPCNF= ppp.conf.filter.sample ppp.conf.iij.sample ppp.conf.sample \ 284Srgrimes ppp.conf.server.sample ppp.dialup.sample ppp.linkup.sample \ 294Srgrimes ppp.pap.dialup.sample ppp.secret.sample 304Srgrimes 314Srgrimes 324Srgrimes# Special top level files for FreeBSD 334SrgrimesCOPYRIGHT= COPYRIGHT 344SrgrimesFREEBSD= 354SrgrimesFREEBSD+= ${COPYRIGHT} 364Srgrimes 374Srgrimes# Compatibility stuff, remove those links 384SrgrimesLATIN1LINKS = \ 394Srgrimes da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 404Srgrimes fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 414Srgrimes pt_PT sv_SE 424Srgrimes 43607Srgrimesall depend etc install lint: 44607Srgrimes 4550477Speterdistribute: 464Srgrimes cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 474Srgrimes 484471Sbdedistribution: 494471Sbde (cd ${.CURDIR}; \ 504Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 5115565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 5215565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 5315565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 5415565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 5515565Sphk ${DESTDIR}/var/cron/log; \ 5615565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 5715565Sphk master.passwd ${DESTDIR}/etc; \ 5815565Sphk ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\ 5915565Sphk ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 6015565Sphk ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 6115565Sphk ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 6215565Sphk ( cd ${.CURDIR}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \ 6315565Sphk pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 6415565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 6515565Sphk MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 6615565Sphk (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 6715565Sphk (cd ${.CURDIR}/root; \ 684Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 694Srgrimes ${DESTDIR}/root/.cshrc; \ 7015565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 7115565Sphk ${DESTDIR}/root/.klogin; \ 7215809Sdyson ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 7315565Sphk ${DESTDIR}/root/.login; \ 7415565Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 7515565Sphk ${DESTDIR}/root/.profile; \ 7615565Sphk rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 774Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 7815543Sphk ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 7915543Sphk cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 8015543Sphk ${MTREE} ${DESTDIR}/etc/mtree 8115543Sphk cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 8215543Sphk ${NAMEDB} ${DESTDIR}/etc/namedb 8315543Sphk cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 8415543Sphk ${PPPCNF} ${DESTDIR}/etc/ppp 8515543Sphk ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 8683757Speter ${DESTDIR}/etc/dumpdates 8783757Speter ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 8883757Speter ${DESTDIR}/var/db/locate.database 8983757Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 9083757Speter ${DESTDIR}/var/log/lpd-errs 9183757Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 9283757Speter ${DESTDIR}/var/log/maillog 9383757Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 9483757Speter ${DESTDIR}/var/log/lastlog 9515543Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 9615543Sphk ${DESTDIR}/var/log/messages 9715543Sphk ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 9815543Sphk ${DESTDIR}/var/log/slip.log 99974Sdg ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 10083757Speter ${DESTDIR}/var/log/ppp.log 101974Sdg ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 102974Sdg ${DESTDIR}/var/log/wtmp 10326812Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 10483757Speter ${DESTDIR}/var/run/utmp 10526812Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 10683757Speter ${DESTDIR}/var/crash 107974Sdg (cd ${.CURDIR}/..; \ 10883757Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 109974Sdg ${DESTDIR}/) 110974Sdg (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 111588Srgrimes 112588Srgrimesdistrib-dirs: 113588Srgrimes mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 114588Srgrimes mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 11525164Speter# Compatibility stuff, remove obsoleted links, if exists 11625164Speter if [ -d ${DESTDIR}/usr/share/locale ] ; \ 117588Srgrimes then \ 11815543Sphk cd ${DESTDIR}/usr/share/locale; \ 11926812Speter for l in ${LATIN1LINKS} ; do \ 12025164Speter if [ -h $$l.ISO_8859-1 ]; then \ 12125164Speter rm $$l.ISO_8859-1; \ 12226812Speter fi ; \ 123607Srgrimes done; \ 12426812Speter fi 125589Srgrimes mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 12624696Speter mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 12754425Speter -p ${DESTDIR}/usr/include 1284Srgrimes.if defined(MAKE_LOCAL) 12915565Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local 13015565Sphk.endif 13115565Sphk cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 13215565Sphk cd ${DESTDIR}/usr/share/locale; \ 13315565Sphk set - `cat ${.CURDIR}/locale.alias`; \ 13415565Sphk while [ $$# -gt 0 ] ; \ 13515543Sphk do \ 13618163Sdyson rm -rf "$$1"; \ 13718163Sdyson ln -s "$$2" "$$1"; \ 13818163Sdyson shift; shift; \ 13986485Speter done 14086485Speter cd ${DESTDIR}/usr/share/nls; \ 14115543Sphk set - `cat ${.CURDIR}/locale.alias`; \ 1421246Sdg while [ $$# -gt 0 ] ; \ 1431246Sdg do \ 144757Sdg rm -rf "$$1"; \ 1454Srgrimes ln -s "$$2" "$$1"; \ 1464Srgrimes shift; shift; \ 1474Srgrimes done; \ 1484Srgrimes rm -rf POSIX; \ 14955205Speter ln -s C POSIX 15086485Speter.if defined(MAKE_LOCAL) 15186485Speter cd ${DESTDIR}/usr/local/share/nls; \ 15286485Speter set - `cat ${.CURDIR}/locale.alias`; \ 1534Srgrimes while [ $$# -gt 0 ] ; \ 15491367Speter do \ 1554Srgrimes rm -rf "$$1"; \ 1564Srgrimes ln -s "$$2" "$$1"; \ 15755205Speter shift; shift; \ 1584Srgrimes done; \ 1594Srgrimes rm -rf POSIX; \ 1604Srgrimes ln -s C POSIX 1614Srgrimes.endif 1624Srgrimes 1634Srgrimes.include <bsd.prog.mk> 1644Srgrimes