Makefile revision 40052
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
240052Smarkm#	$Id: Makefile,v 1.178 1998/10/06 19:24:14 phk 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 \
914662Sphk	newsyslog.conf phones pccard.conf.sample printcap profile protocols \
1040006Sphk	rc rc.atm rc.conf rc.devfs rc.firewall rc.local rc.network rc.pccard \
1139562Smax	rc.serial rc.shutdown etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
1238711Sjb	remote security services shells syslog.conf \
1338711Sjb	etc.${MACHINE_ARCH}/ttys etc.${MACHINE_ARCH}/disktab rpc make.conf \
141734Sjkh	${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
1517639Swosch	${.CURDIR}/../usr.bin/mail/misc/mail.rc \
1617639Swosch	${.CURDIR}/../usr.bin/locate/locate/locate.rc
1737Srgrimes
181773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel
1936902SguidoBIN2=	netstart pccard_ether
20147Srgrimes
2127487SasamiMTREE=	BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
2227487Sasami	BSD.var.dist BSD.x11.dist
2335832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
2431071SbrianPPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
2531071Sbrian	ppp.secret.sample ppp.deny ppp.shells.sample
2630589SjmbNOSPAM=	Makefile README sendmail.cf.additions
2737Srgrimes
2817639Swosch
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
4038103Speteretc:
4137Srgrimes
424487Sphkdistribute:
436717Sphk	cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
4439590Sjkh.if defined(OBJFORMAT)
4539636Sdima	echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
4639590Sjkh.endif
4739590Sjkh	@echo 
485948Sjkh
494487Sphkdistribution:
501759Sjkh	(cd ${.CURDIR}; \
519970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
5236902Sguido	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
539970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
541759Sjkh	    ${DESTDIR}/var/cron/log; \
559970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
561759Sjkh	    master.passwd ${DESTDIR}/etc; \
5728266Spst	( cd ${.CURDIR}/periodic; ${MAKE} install );\
5817639Swosch	( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
5917639Swosch	( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
6017639Swosch	( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
6117645Swosch	( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
6238160Sjb	( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
6336415Sjkoshy	( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
641759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
659970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
6638711Sjb	     MAKEDEV.local etc.${MACHINE_ARCH}/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
8630589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
8730589Sjmb	    ${NOSPAM} ${DESTDIR}/etc/mail
889970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
8937Srgrimes	    ${DESTDIR}/etc/dumpdates
909970Sbde	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
91147Srgrimes	    ${DESTDIR}/var/db/locate.database
929970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
93147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
949970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
9537Srgrimes	    ${DESTDIR}/var/log/maillog
969970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
97288Srgrimes	    ${DESTDIR}/var/log/lastlog
989970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
99147Srgrimes	    ${DESTDIR}/var/log/messages
10013378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10113378Sache	    ${DESTDIR}/var/log/slip.log
10217104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10317104Spst	    ${DESTDIR}/var/log/ppp.log
1049970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
105147Srgrimes	    ${DESTDIR}/var/log/wtmp
1069970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
10737Srgrimes	    ${DESTDIR}/var/run/utmp
1089970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1091759Sjkh	    ${DESTDIR}/var/crash
1101759Sjkh	(cd ${.CURDIR}/..; \
1119970Sbde	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
1129970Sbde		${DESTDIR}/)
1131759Sjkh	(cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
11437Srgrimes
115147Srgrimesdistrib-dirs:
1163654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
1173654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
11811635Sache# Compatibility stuff, remove obsoleted links, if exists
11911849Sache	if [ -d	${DESTDIR}/usr/share/locale ] ;	\
12011635Sache	then \
12111635Sache		cd ${DESTDIR}/usr/share/locale;	\
12211635Sache		for l in ${LATIN1LINKS}	; do \
12311853Speter			if [ -h $$l.ISO_8859-1 ]; then \
12411853Speter				rm $$l.ISO_8859-1; \
12511853Speter			fi ; \
12611635Sache		done; \
12711635Sache	fi
1283654Sphk	mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
1297129Srgrimes	mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
1307129Srgrimes		-p ${DESTDIR}/usr/include
131410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1327129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
13311635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13411635Sache	while [ $$# -gt 0 ] ; \
13511635Sache	do \
13611635Sache		rm -rf "$$1"; \
13711635Sache		ln -s "$$2" "$$1"; \
13811635Sache		shift; shift; \
1397129Srgrimes	done
14011635Sache	cd ${DESTDIR}/usr/share/nls; \
14111635Sache	set - `cat ${.CURDIR}/locale.alias`; \
14211635Sache	while [ $$# -gt 0 ] ; \
14311635Sache	do \
14411635Sache		rm -rf "$$1"; \
14511635Sache		ln -s "$$2" "$$1"; \
14611635Sache		shift; shift; \
14711635Sache	done; \
14811635Sache	rm -rf POSIX; \
14911635Sache	ln -s C POSIX
150147Srgrimes
15137Srgrimes.include <bsd.prog.mk>
152