Makefile revision 42479
11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
242479Shm#	$Id: Makefile,v 1.184 1998/12/14 02:01:22 dillon 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 \
1141758Sdillon	rc rc.atm rc.conf rc.devfs rc.firewall 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 ); \
6442479Shm	( cd ${.CURDIR}/isdn; ${MAKE} install );\
6536415Sjkoshy	( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
661759Sjkh	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
679970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
6838711Sjb	     MAKEDEV.local etc.${MACHINE_ARCH}/MAKEDEV ${DESTDIR}/dev )
691759Sjkh	(cd ${DESTDIR}/dev; sh MAKEDEV all) ;
701731Sjkh	(cd ${.CURDIR}/root; \
719970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \
7237Srgrimes		    ${DESTDIR}/root/.cshrc; \
739970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \
7437Srgrimes		    ${DESTDIR}/root/.klogin; \
759970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \
7637Srgrimes		    ${DESTDIR}/root/.login; \
779970Sbde		${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \
7837Srgrimes		    ${DESTDIR}/root/.profile; \
7937Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
8037Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
8137Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
829970Sbde	cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
831731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
849970Sbde	cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
851731Sjkh	    ${NAMEDB} ${DESTDIR}/etc/namedb
869970Sbde	cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
876177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
8830589Sjmb	cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
8930589Sjmb	    ${NOSPAM} ${DESTDIR}/etc/mail
909970Sbde	${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
9137Srgrimes	    ${DESTDIR}/etc/dumpdates
929970Sbde	${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
93147Srgrimes	    ${DESTDIR}/var/db/locate.database
949970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
95147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
969970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
9737Srgrimes	    ${DESTDIR}/var/log/maillog
989970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
99288Srgrimes	    ${DESTDIR}/var/log/lastlog
1009970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
101147Srgrimes	    ${DESTDIR}/var/log/messages
10213378Sache	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10313378Sache	    ${DESTDIR}/var/log/slip.log
10417104Spst	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
10517104Spst	    ${DESTDIR}/var/log/ppp.log
1069970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
107147Srgrimes	    ${DESTDIR}/var/log/wtmp
1089970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
10937Srgrimes	    ${DESTDIR}/var/run/utmp
1109970Sbde	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
1111759Sjkh	    ${DESTDIR}/var/crash
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
133410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
1347129Srgrimes	cd ${DESTDIR}/usr/share/locale; \
13511635Sache	set - `cat ${.CURDIR}/locale.alias`; \
13611635Sache	while [ $$# -gt 0 ] ; \
13711635Sache	do \
13811635Sache		rm -rf "$$1"; \
13911635Sache		ln -s "$$2" "$$1"; \
14011635Sache		shift; shift; \
1417129Srgrimes	done
14211635Sache	cd ${DESTDIR}/usr/share/nls; \
14311635Sache	set - `cat ${.CURDIR}/locale.alias`; \
14411635Sache	while [ $$# -gt 0 ] ; \
14511635Sache	do \
14611635Sache		rm -rf "$$1"; \
14711635Sache		ln -s "$$2" "$$1"; \
14811635Sache		shift; shift; \
14911635Sache	done; \
15011635Sache	rm -rf POSIX; \
15111635Sache	ln -s C POSIX
152147Srgrimes
15337Srgrimes.include <bsd.prog.mk>
154