Makefile revision 15603
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 215027Sphk# $Id: Makefile,v 1.135 1996/03/22 17:28:07 nate Exp $ 337Srgrimes 437Srgrimes# -rw-r--r-- 5147SrgrimesBINOWN= root 6147SrgrimesBINGRP= wheel 713997SjkhBIN1= aliases amd.map csh.cshrc csh.login csh.logout dm.conf \ 83017Srgrimes ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 914104Sjoerg inetd.conf login.access motd modems netstart networks \ 1014662Sphk newsyslog.conf phones pccard.conf.sample printcap profile protocols \ 1115027Sphk rc rc.firewall rc.local rc.pccard rc.serial \ 1215027Sphk etc.${MACHINE}/rc.${MACHINE} \ 137487Srgrimes remote security services sysconfig shells \ 145356Sache syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ 151734Sjkh ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 161734Sjkh ${.CURDIR}/../usr.bin/mail/misc/mail.rc 1737Srgrimes 1837Srgrimes# -rw-rw-rw- 1937SrgrimesBIN2= motd 2037Srgrimes 211773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel 2214662SphkBIN3= daily weekly monthly pccard_ether 23147Srgrimes 24491SrgrimesMTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist 257273SrgrimesNAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 266177SamuraiPPPCNF= ppp.conf.filter.sample ppp.conf.iij ppp.conf.sample \ 276177Samurai ppp.linkup.sample ppp.secret.sample 2837Srgrimes 29263Srgrimes# Special top level files for FreeBSD 302779SrgrimesCOPYRIGHT= COPYRIGHT 318857SrgrimesFREEBSD= 32993SrgrimesFREEBSD+= ${COPYRIGHT} 33263Srgrimes 3411635Sache# Compatibility stuff, remove those links 356744SacheLATIN1LINKS = \ 366744Sache da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 376744Sache fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 386744Sache pt_PT sv_SE 396744Sache 401767Sjkhall depend etc install lint: 4137Srgrimes 424487Sphkdistribute: 436717Sphk cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 445948Sjkh 454487Sphkdistribution: 461759Sjkh (cd ${.CURDIR}; \ 479970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 489970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 499970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 509970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 519970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 521759Sjkh ${DESTDIR}/var/cron/log; \ 539970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 541759Sjkh master.passwd ${DESTDIR}/etc; \ 551759Sjkh pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 569970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 571759Sjkh MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 581759Sjkh (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 591731Sjkh (cd ${.CURDIR}/root; \ 6012540Sjkh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.fvwmrc \ 6112540Sjkh ${DESTDIR}/root/.fvwmrc; \ 6212540Sjkh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.Xdefaults \ 6312540Sjkh ${DESTDIR}/root/.Xdefaults; \ 6412540Sjkh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.xsession \ 6512540Sjkh ${DESTDIR}/root/.xsession; \ 669970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 6737Srgrimes ${DESTDIR}/root/.cshrc; \ 689970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 6937Srgrimes ${DESTDIR}/root/.klogin; \ 709970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 7137Srgrimes ${DESTDIR}/root/.login; \ 729970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 7337Srgrimes ${DESTDIR}/root/.profile; \ 7437Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 7537Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 7637Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 779970Sbde cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 781731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 799970Sbde cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 801731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 819970Sbde cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 826177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 839970Sbde ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 8437Srgrimes ${DESTDIR}/etc/dumpdates 859970Sbde ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 86147Srgrimes ${DESTDIR}/var/db/locate.database 879970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 88147Srgrimes ${DESTDIR}/var/log/lpd-errs 899970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 9037Srgrimes ${DESTDIR}/var/log/maillog 919970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 92288Srgrimes ${DESTDIR}/var/log/lastlog 939970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 94147Srgrimes ${DESTDIR}/var/log/messages 9513378Sache ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 9613378Sache ${DESTDIR}/var/log/slip.log 979970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 98147Srgrimes ${DESTDIR}/var/log/wtmp 999970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 10037Srgrimes ${DESTDIR}/var/run/utmp 1019970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 1021759Sjkh ${DESTDIR}/var/crash 1031759Sjkh (cd ${.CURDIR}/../usr.sbin/sendmail/src; \ 1044487Sphk ${MAKE} obj; \ 1054487Sphk ${MAKE} all; \ 106355Srgrimes ${MAKE} install; \ 107277Srgrimes cd ../cf/cf; \ 1081126Srgrimes ${MAKE} obj; \ 10912584Speter ${MAKE} freebsd.cf; \ 11012584Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 obj/freebsd.cf \ 1119970Sbde ${DESTDIR}/etc/sendmail.cf) 1121759Sjkh (cd ${.CURDIR}/..; \ 1139970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 1149970Sbde ${DESTDIR}/) 1151759Sjkh (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 11637Srgrimes 117147Srgrimesdistrib-dirs: 1183654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 1193654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 12011635Sache# Compatibility stuff, remove obsoleted links, if exists 12111849Sache if [ -d ${DESTDIR}/usr/share/locale ] ; \ 12211635Sache then \ 12311635Sache cd ${DESTDIR}/usr/share/locale; \ 12411635Sache for l in ${LATIN1LINKS} ; do \ 12511853Speter if [ -h $$l.ISO_8859-1 ]; then \ 12611853Speter rm $$l.ISO_8859-1; \ 12711853Speter fi ; \ 12811635Sache done; \ 12911635Sache fi 1303654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 1317129Srgrimes mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 1327129Srgrimes -p ${DESTDIR}/usr/include 1333018Srgrimes.if defined(MAKE_LOCAL) 1343654Sphk mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local 135372Srgrimes.endif 136410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 1377129Srgrimes cd ${DESTDIR}/usr/share/locale; \ 13811635Sache set - `cat ${.CURDIR}/locale.alias`; \ 13911635Sache while [ $$# -gt 0 ] ; \ 14011635Sache do \ 14111635Sache rm -rf "$$1"; \ 14211635Sache ln -s "$$2" "$$1"; \ 14311635Sache shift; shift; \ 1447129Srgrimes done 14511635Sache cd ${DESTDIR}/usr/share/nls; \ 14611635Sache set - `cat ${.CURDIR}/locale.alias`; \ 14711635Sache while [ $$# -gt 0 ] ; \ 14811635Sache do \ 14911635Sache rm -rf "$$1"; \ 15011635Sache ln -s "$$2" "$$1"; \ 15111635Sache shift; shift; \ 15211635Sache done; \ 15311635Sache rm -rf POSIX; \ 15411635Sache ln -s C POSIX 15511635Sache.if defined(MAKE_LOCAL) 15611635Sache cd ${DESTDIR}/usr/local/share/nls; \ 15711635Sache set - `cat ${.CURDIR}/locale.alias`; \ 15811635Sache while [ $$# -gt 0 ] ; \ 15911635Sache do \ 16011635Sache rm -rf "$$1"; \ 16111635Sache ln -s "$$2" "$$1"; \ 16211635Sache shift; shift; \ 16311635Sache done; \ 16411635Sache rm -rf POSIX; \ 16511635Sache ln -s C POSIX 16611635Sache.endif 167147Srgrimes 16837Srgrimes.include <bsd.prog.mk> 169