Makefile revision 41274
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 241274Sjdp# $Id: Makefile,v 1.179 1998/10/08 06:12:04 markm Exp $ 337Srgrimes 438103SpeterSUBDIR= sendmail 538103Speter 628205SjkhBIN1= aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \ 739562Smax fbtab ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 840052Smarkm inetd.conf auth.conf login.conf login.access motd modems networks \ 941274Sjdp newsyslog.conf pam.conf phones pccard.conf.sample \ 1041274Sjdp printcap profile protocols \ 1140006Sphk rc rc.atm rc.conf rc.devfs rc.firewall rc.local rc.network rc.pccard \ 1239562Smax rc.serial rc.shutdown etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 1338711Sjb remote security services shells syslog.conf \ 1438711Sjb etc.${MACHINE_ARCH}/ttys etc.${MACHINE_ARCH}/disktab rpc make.conf \ 151734Sjkh ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 1617639Swosch ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 1717639Swosch ${.CURDIR}/../usr.bin/locate/locate/locate.rc 1837Srgrimes 191773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel 2036902SguidoBIN2= netstart pccard_ether 21147Srgrimes 2227487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 2327487Sasami BSD.var.dist BSD.x11.dist 2435832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 2531071SbrianPPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \ 2631071Sbrian ppp.secret.sample ppp.deny ppp.shells.sample 2730589SjmbNOSPAM= Makefile README sendmail.cf.additions 2837Srgrimes 2917639Swosch 30263Srgrimes# Special top level files for FreeBSD 312779SrgrimesCOPYRIGHT= COPYRIGHT 328857SrgrimesFREEBSD= 33993SrgrimesFREEBSD+= ${COPYRIGHT} 34263Srgrimes 3511635Sache# Compatibility stuff, remove those links 366744SacheLATIN1LINKS = \ 376744Sache da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 386744Sache fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 396744Sache pt_PT sv_SE 406744Sache 4138103Speteretc: 4237Srgrimes 434487Sphkdistribute: 446717Sphk cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 4539590Sjkh.if defined(OBJFORMAT) 4639636Sdima echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 4739590Sjkh.endif 4839590Sjkh @echo 495948Sjkh 504487Sphkdistribution: 511759Sjkh (cd ${.CURDIR}; \ 529970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 5336902Sguido ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 549970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 551759Sjkh ${DESTDIR}/var/cron/log; \ 569970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 571759Sjkh master.passwd ${DESTDIR}/etc; \ 5828266Spst ( cd ${.CURDIR}/periodic; ${MAKE} install );\ 5917639Swosch ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\ 6017639Swosch ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 6117639Swosch ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 6217645Swosch ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 6338160Sjb ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \ 6436415Sjkoshy ( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \ 651759Sjkh pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 669970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 6738711Sjb MAKEDEV.local etc.${MACHINE_ARCH}/MAKEDEV ${DESTDIR}/dev ) 681759Sjkh (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 691731Sjkh (cd ${.CURDIR}/root; \ 709970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 7137Srgrimes ${DESTDIR}/root/.cshrc; \ 729970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 7337Srgrimes ${DESTDIR}/root/.klogin; \ 749970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 7537Srgrimes ${DESTDIR}/root/.login; \ 769970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 7737Srgrimes ${DESTDIR}/root/.profile; \ 7837Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 7937Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 8037Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 819970Sbde cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 821731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 839970Sbde cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 841731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 859970Sbde cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 866177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 8730589Sjmb cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 8830589Sjmb ${NOSPAM} ${DESTDIR}/etc/mail 899970Sbde ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 9037Srgrimes ${DESTDIR}/etc/dumpdates 919970Sbde ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 92147Srgrimes ${DESTDIR}/var/db/locate.database 939970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 94147Srgrimes ${DESTDIR}/var/log/lpd-errs 959970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 9637Srgrimes ${DESTDIR}/var/log/maillog 979970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 98288Srgrimes ${DESTDIR}/var/log/lastlog 999970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 100147Srgrimes ${DESTDIR}/var/log/messages 10113378Sache ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 10213378Sache ${DESTDIR}/var/log/slip.log 10317104Spst ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 10417104Spst ${DESTDIR}/var/log/ppp.log 1059970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 106147Srgrimes ${DESTDIR}/var/log/wtmp 1079970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 10837Srgrimes ${DESTDIR}/var/run/utmp 1099970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 1101759Sjkh ${DESTDIR}/var/crash 1111759Sjkh (cd ${.CURDIR}/..; \ 1129970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 1139970Sbde ${DESTDIR}/) 1141759Sjkh (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 11537Srgrimes 116147Srgrimesdistrib-dirs: 1173654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 1183654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 11911635Sache# Compatibility stuff, remove obsoleted links, if exists 12011849Sache if [ -d ${DESTDIR}/usr/share/locale ] ; \ 12111635Sache then \ 12211635Sache cd ${DESTDIR}/usr/share/locale; \ 12311635Sache for l in ${LATIN1LINKS} ; do \ 12411853Speter if [ -h $$l.ISO_8859-1 ]; then \ 12511853Speter rm $$l.ISO_8859-1; \ 12611853Speter fi ; \ 12711635Sache done; \ 12811635Sache fi 1293654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 1307129Srgrimes mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 1317129Srgrimes -p ${DESTDIR}/usr/include 132410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 1337129Srgrimes cd ${DESTDIR}/usr/share/locale; \ 13411635Sache set - `cat ${.CURDIR}/locale.alias`; \ 13511635Sache while [ $$# -gt 0 ] ; \ 13611635Sache do \ 13711635Sache rm -rf "$$1"; \ 13811635Sache ln -s "$$2" "$$1"; \ 13911635Sache shift; shift; \ 1407129Srgrimes done 14111635Sache cd ${DESTDIR}/usr/share/nls; \ 14211635Sache set - `cat ${.CURDIR}/locale.alias`; \ 14311635Sache while [ $$# -gt 0 ] ; \ 14411635Sache do \ 14511635Sache rm -rf "$$1"; \ 14611635Sache ln -s "$$2" "$$1"; \ 14711635Sache shift; shift; \ 14811635Sache done; \ 14911635Sache rm -rf POSIX; \ 15011635Sache ln -s C POSIX 151147Srgrimes 15237Srgrimes.include <bsd.prog.mk> 153