Makefile revision 36902
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
236902Sguido#	$Id: Makefile,v 1.166 1998/05/27 12:13:16 jkoshy Exp $
337Srgrimes
437Srgrimes# -rw-r--r--
5147SrgrimesBINOWN= root
6147SrgrimesBINGRP= wheel
728205SjkhBIN1=   aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \
83017Srgrimes	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
925184Sjkh	inetd.conf login.conf login.access motd modems networks \
1014662Sphk	newsyslog.conf phones pccard.conf.sample printcap profile protocols \
1125184Sjkh	rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \
1227837Sdavidn	rc.shutdown etc.${MACHINE}/rc.${MACHINE} \
1325184Sjkh	remote security services shells \
1436106Sjb	syslog.conf etc.${MACHINE}/ttys etc.${MACHINE}/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
411767Sjkhall depend etc install lint:
4237Srgrimes
434487Sphkdistribute:
446717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
455948Sjkh
464487Sphkdistribution:
471759Sjkh	(cd ${.CURDIR}; \
489970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
4936902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
509970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
511759Sjkh	    ${DESTDIR}/var/cron/log; \
529970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
531759Sjkh	    master.passwd ${DESTDIR}/etc; \
5428266Spst	( cd ${.CURDIR}/periodic; ${MAKE} install );\
5517639Swosch	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
5617639Swosch	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
5717639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
5817645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
5920979Speter	( cd ${.CURDIR}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \
6036415Sjkoshy	( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
611759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
629970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
631759Sjkh	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev )
641759Sjkh	(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
651731Sjkh	(cd ${.CURDIR}/root; \
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
8330589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
8430589Sjmb	    ${NOSPAM} ${DESTDIR}/etc/mail
859970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
8637Srgrimes	    ${DESTDIR}/etc/dumpdates
879970Sbde	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
88147Srgrimes	    ${DESTDIR}/var/db/locate.database
899970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
90147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
919970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
9237Srgrimes	    ${DESTDIR}/var/log/maillog
939970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
94288Srgrimes	    ${DESTDIR}/var/log/lastlog
959970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
96147Srgrimes	    ${DESTDIR}/var/log/messages
9713378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
9813378Sache	    ${DESTDIR}/var/log/slip.log
9917104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10017104Spst	    ${DESTDIR}/var/log/ppp.log
1019970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
102147Srgrimes	    ${DESTDIR}/var/log/wtmp
1039970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
10437Srgrimes	    ${DESTDIR}/var/run/utmp
1059970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1061759Sjkh	    ${DESTDIR}/var/crash
1071759Sjkh	(cd ${.CURDIR}/..; \
1089970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1099970Sbde		${DESTDIR}/)
1101759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
11137Srgrimes
112147Srgrimesdistrib-dirs:
1133654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
1143654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
11511635Sache# Compatibility stuff, remove obsoleted links, if exists
11611849Sache	if [ -d	${DESTDIR}/usr/share/locale ] ;	\
11711635Sache	then \
11811635Sache		cd ${DESTDIR}/usr/share/locale;	\
11911635Sache		for l in ${LATIN1LINKS}	; do \
12011853Speter			if [ -h $$l.ISO_8859-1 ]; then \
12111853Speter				rm $$l.ISO_8859-1; \
12211853Speter			fi ; \
12311635Sache		done; \
12411635Sache	fi
1253654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
1267129Srgrimes	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1277129Srgrimes		-p ${DESTDIR}/usr/include
128410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1297129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
13011635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13111635Sache	while [ $$# -gt 0 ] ; \
13211635Sache	do \
13311635Sache		rm -rf "$$1"; \
13411635Sache		ln -s "$$2" "$$1"; \
13511635Sache		shift; shift; \
1367129Srgrimes	done
13711635Sache	cd ${DESTDIR}/usr/share/nls; \
13811635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13911635Sache	while [ $$# -gt 0 ] ; \
14011635Sache	do \
14111635Sache		rm -rf "$$1"; \
14211635Sache		ln -s "$$2" "$$1"; \
14311635Sache		shift; shift; \
14411635Sache	done; \
14511635Sache	rm -rf POSIX; \
14611635Sache	ln -s C POSIX
147147Srgrimes
14837Srgrimes.include <bsd.prog.mk>
149