Makefile revision 30169
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
229950Sjkh#	$Id: Makefile,v 1.160 1997/08/16 17:07:12 pst 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 \
145356Sache	syslog.conf 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
1937Srgrimes# -rw-rw-rw-
2037SrgrimesBIN2=	motd
2137Srgrimes
221773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
2328159SjkhBIN3=	netstart pccard_ether
24147Srgrimes
2527487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
2627487Sasami	BSD.var.dist BSD.x11.dist
277273SrgrimesNAMEDB=	PROTO.localhost.rev named.boot named.root make-localhost
2819032SpstPPPCNF= ppp.conf.filter.sample ppp.conf.iij.sample ppp.conf.sample \
2919032Spst	ppp.conf.server.sample ppp.dialup.sample ppp.linkup.sample \
3029950Sjkh	ppp.pap.dialup.sample ppp.secret.sample ppp.deny ppp.shells.sample
3137Srgrimes
3217639Swosch
33263Srgrimes# Special top level files for FreeBSD
342779SrgrimesCOPYRIGHT=	COPYRIGHT
358857SrgrimesFREEBSD=
36993SrgrimesFREEBSD+=	${COPYRIGHT}
37263Srgrimes
3811635Sache# Compatibility stuff, remove those links
396744SacheLATIN1LINKS = \
406744Sache	da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \
416744Sache	fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \
426744Sache	pt_PT sv_SE
436744Sache
441767Sjkhall depend etc install lint:
4537Srgrimes
464487Sphkdistribute:
476717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
485948Sjkh
494487Sphkdistribution:
501759Sjkh	(cd ${.CURDIR}; \
519970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
529970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \
539970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${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 ); \
6320979Speter	( cd ${.CURDIR}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \
641759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
659970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
661759Sjkh	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev )
671759Sjkh	(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
681731Sjkh	(cd ${.CURDIR}/root; \
699970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
7037Srgrimes		    ${DESTDIR}/root/.cshrc; \
719970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
7237Srgrimes		    ${DESTDIR}/root/.klogin; \
739970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
7437Srgrimes		    ${DESTDIR}/root/.login; \
759970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
7637Srgrimes		    ${DESTDIR}/root/.profile; \
7737Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
7837Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
7937Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
809970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
811731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
829970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
831731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
849970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
856177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
869970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
8737Srgrimes	    ${DESTDIR}/etc/dumpdates
889970Sbde	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
89147Srgrimes	    ${DESTDIR}/var/db/locate.database
909970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
91147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
929970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
9337Srgrimes	    ${DESTDIR}/var/log/maillog
949970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
95288Srgrimes	    ${DESTDIR}/var/log/lastlog
969970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
97147Srgrimes	    ${DESTDIR}/var/log/messages
9813378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
9913378Sache	    ${DESTDIR}/var/log/slip.log
10017104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10117104Spst	    ${DESTDIR}/var/log/ppp.log
1029970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
103147Srgrimes	    ${DESTDIR}/var/log/wtmp
1049970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
10537Srgrimes	    ${DESTDIR}/var/run/utmp
1069970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1071759Sjkh	    ${DESTDIR}/var/crash
1081759Sjkh	(cd ${.CURDIR}/..; \
1099970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1109970Sbde		${DESTDIR}/)
1111759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
11237Srgrimes
113147Srgrimesdistrib-dirs:
1143654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
1153654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
11611635Sache# Compatibility stuff, remove obsoleted links, if exists
11711849Sache	if [ -d	${DESTDIR}/usr/share/locale ] ;	\
11811635Sache	then \
11911635Sache		cd ${DESTDIR}/usr/share/locale;	\
12011635Sache		for l in ${LATIN1LINKS}	; do \
12111853Speter			if [ -h $$l.ISO_8859-1 ]; then \
12211853Speter				rm $$l.ISO_8859-1; \
12311853Speter			fi ; \
12411635Sache		done; \
12511635Sache	fi
1263654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
1277129Srgrimes	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1287129Srgrimes		-p ${DESTDIR}/usr/include
129410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1307129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
13111635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13211635Sache	while [ $$# -gt 0 ] ; \
13311635Sache	do \
13411635Sache		rm -rf "$$1"; \
13511635Sache		ln -s "$$2" "$$1"; \
13611635Sache		shift; shift; \
1377129Srgrimes	done
13811635Sache	cd ${DESTDIR}/usr/share/nls; \
13911635Sache	set - `cat ${.CURDIR}/locale.alias`; \
14011635Sache	while [ $$# -gt 0 ] ; \
14111635Sache	do \
14211635Sache		rm -rf "$$1"; \
14311635Sache		ln -s "$$2" "$$1"; \
14411635Sache		shift; shift; \
14511635Sache	done; \
14611635Sache	rm -rf POSIX; \
14711635Sache	ln -s C POSIX
148147Srgrimes
14937Srgrimes.include <bsd.prog.mk>
150