Makefile revision 38103
11539Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 21539Srgrimes# $Id: Makefile,v 1.167 1998/06/11 20:25:56 guido Exp $ 31539Srgrimes 41539SrgrimesSUBDIR= sendmail 51539Srgrimes 61539Srgrimes# -rw-r--r-- 71539SrgrimesBINOWN= root 81539SrgrimesBINGRP= wheel 91539SrgrimesBIN1= aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \ 101539Srgrimes ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 111539Srgrimes inetd.conf login.conf login.access motd modems networks \ 121539Srgrimes newsyslog.conf phones pccard.conf.sample printcap profile protocols \ 131539Srgrimes rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \ 141539Srgrimes rc.shutdown etc.${MACHINE}/rc.${MACHINE} \ 151539Srgrimes remote security services shells \ 161539Srgrimes syslog.conf etc.${MACHINE}/ttys etc.${MACHINE}/disktab rpc make.conf \ 171539Srgrimes ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 181539Srgrimes ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 191539Srgrimes ${.CURDIR}/../usr.bin/locate/locate/locate.rc 201539Srgrimes 211539Srgrimes# -rwxr-xr-x root.wheel, for the new cron root.wheel 221539SrgrimesBIN2= netstart pccard_ether 231539Srgrimes 241539SrgrimesMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 251539Srgrimes BSD.var.dist BSD.x11.dist 261539SrgrimesNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 271539SrgrimesPPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \ 281539Srgrimes ppp.secret.sample ppp.deny ppp.shells.sample 291539SrgrimesNOSPAM= Makefile README sendmail.cf.additions 301539Srgrimes 311539Srgrimes 321539Srgrimes# Special top level files for FreeBSD 331539SrgrimesCOPYRIGHT= COPYRIGHT 3493032SimpFREEBSD= 351539SrgrimesFREEBSD+= ${COPYRIGHT} 361539Srgrimes 371539Srgrimes# Compatibility stuff, remove those links 381539SrgrimesLATIN1LINKS = \ 391539Srgrimes da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 401539Srgrimes fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 411539Srgrimes pt_PT sv_SE 421539Srgrimes 431539Srgrimesetc: 441539Srgrimes 451539Srgrimesdistribute: 461539Srgrimes cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 471539Srgrimes 481539Srgrimesdistribution: 491539Srgrimes (cd ${.CURDIR}; \ 501539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 511539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 521539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 531539Srgrimes ${DESTDIR}/var/cron/log; \ 541539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 551539Srgrimes master.passwd ${DESTDIR}/etc; \ 561539Srgrimes ( cd ${.CURDIR}/periodic; ${MAKE} install );\ 571539Srgrimes ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\ 581539Srgrimes ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 591539Srgrimes ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 601539Srgrimes ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 611539Srgrimes ( cd ${.CURDIR}/sendmail/cf; ${MAKE} etc-sendmail.cf ); \ 621539Srgrimes ( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \ 631539Srgrimes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 641539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 651539Srgrimes MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 661539Srgrimes (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 6722051Smpp (cd ${.CURDIR}/root; \ 681539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 691539Srgrimes ${DESTDIR}/root/.cshrc; \ 701539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 711539Srgrimes ${DESTDIR}/root/.klogin; \ 721539Srgrimes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 7393032Simp ${DESTDIR}/root/.login; \ 7493032Simp ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 7593032Simp ${DESTDIR}/root/.profile; \ 7693032Simp rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 7793032Simp ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 78113219Smdodd ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 79113219Smdodd cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 801539Srgrimes ${MTREE} ${DESTDIR}/etc/mtree 811539Srgrimes cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 821539Srgrimes ${NAMEDB} ${DESTDIR}/etc/namedb 83 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 84 ${PPPCNF} ${DESTDIR}/etc/ppp 85 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 86 ${NOSPAM} ${DESTDIR}/etc/mail 87 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 88 ${DESTDIR}/etc/dumpdates 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 664 /dev/null \ 92 ${DESTDIR}/var/log/lpd-errs 93 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 94 ${DESTDIR}/var/log/maillog 95 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 96 ${DESTDIR}/var/log/lastlog 97 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 98 ${DESTDIR}/var/log/messages 99 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 100 ${DESTDIR}/var/log/slip.log 101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 102 ${DESTDIR}/var/log/ppp.log 103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 104 ${DESTDIR}/var/log/wtmp 105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 106 ${DESTDIR}/var/run/utmp 107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 108 ${DESTDIR}/var/crash 109 (cd ${.CURDIR}/..; \ 110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 111 ${DESTDIR}/) 112 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 113 114distrib-dirs: 115 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 116 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 117# Compatibility stuff, remove obsoleted links, if exists 118 if [ -d ${DESTDIR}/usr/share/locale ] ; \ 119 then \ 120 cd ${DESTDIR}/usr/share/locale; \ 121 for l in ${LATIN1LINKS} ; do \ 122 if [ -h $$l.ISO_8859-1 ]; then \ 123 rm $$l.ISO_8859-1; \ 124 fi ; \ 125 done; \ 126 fi 127 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 128 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 129 -p ${DESTDIR}/usr/include 130 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 131 cd ${DESTDIR}/usr/share/locale; \ 132 set - `cat ${.CURDIR}/locale.alias`; \ 133 while [ $$# -gt 0 ] ; \ 134 do \ 135 rm -rf "$$1"; \ 136 ln -s "$$2" "$$1"; \ 137 shift; shift; \ 138 done 139 cd ${DESTDIR}/usr/share/nls; \ 140 set - `cat ${.CURDIR}/locale.alias`; \ 141 while [ $$# -gt 0 ] ; \ 142 do \ 143 rm -rf "$$1"; \ 144 ln -s "$$2" "$$1"; \ 145 shift; shift; \ 146 done; \ 147 rm -rf POSIX; \ 148 ln -s C POSIX 149 150.include <bsd.prog.mk> 151