Makefile revision 17594
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.139 1996/07/13 04:33:23 jkh Exp $ 3 4# -rw-r--r-- 5BINOWN= root 6BINGRP= wheel 7BIN1= aliases amd.map csh.cshrc csh.login csh.logout dm.conf \ 8 ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 9 inetd.conf login.access motd modems netstart networks \ 10 newsyslog.conf phones pccard.conf.sample printcap profile protocols \ 11 rc rc.firewall rc.local rc.pccard rc.serial \ 12 etc.${MACHINE}/rc.${MACHINE} \ 13 remote security services sysconfig shells \ 14 syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ 15 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 16 ${.CURDIR}/../usr.bin/mail/misc/mail.rc 17 18# -rw-rw-rw- 19BIN2= motd 20 21# -rwxr-xr-x root.wheel, for the new cron root.wheel 22BIN3= daily weekly monthly pccard_ether 23 24MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist 25NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 26PPPCNF= ppp.conf.filter.sample ppp.conf.iij ppp.conf.sample \ 27 ppp.linkup.sample ppp.secret.sample 28 29# Special top level files for FreeBSD 30COPYRIGHT= COPYRIGHT 31FREEBSD= 32FREEBSD+= ${COPYRIGHT} 33 34# Sendmail configuration file for release 35SENDMAILCF?= freebsd.cf 36 37# Compatibility stuff, remove those links 38LATIN1LINKS = \ 39 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 40 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 41 pt_PT sv_SE 42 43all depend etc install lint: 44 45distribute: 46 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 47 48distribution: 49 (cd ${.CURDIR}; \ 50 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 51 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 52 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 55 ${DESTDIR}/var/cron/log; \ 56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 57 master.passwd ${DESTDIR}/etc; \ 58 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 59 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 60 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 61 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 62 (cd ${.CURDIR}/root; \ 63 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 64 ${DESTDIR}/root/.cshrc; \ 65 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 66 ${DESTDIR}/root/.klogin; \ 67 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 68 ${DESTDIR}/root/.login; \ 69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 70 ${DESTDIR}/root/.profile; \ 71 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 72 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 73 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 74 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 75 ${MTREE} ${DESTDIR}/etc/mtree 76 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 77 ${NAMEDB} ${DESTDIR}/etc/namedb 78 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 79 ${PPPCNF} ${DESTDIR}/etc/ppp 80 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 81 ${DESTDIR}/etc/dumpdates 82 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 83 ${DESTDIR}/var/db/locate.database 84 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 85 ${DESTDIR}/var/log/lpd-errs 86 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 87 ${DESTDIR}/var/log/maillog 88 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 89 ${DESTDIR}/var/log/lastlog 90 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 91 ${DESTDIR}/var/log/messages 92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 93 ${DESTDIR}/var/log/slip.log 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 95 ${DESTDIR}/var/log/ppp.log 96 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 97 ${DESTDIR}/var/log/wtmp 98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 99 ${DESTDIR}/var/run/utmp 100 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 101 ${DESTDIR}/var/crash 102 (cd ${.CURDIR}/../usr.sbin/sendmail/src; \ 103 ${MAKE} obj; \ 104 ${MAKE} all; \ 105 ${MAKE} install; \ 106 cd ../cf/cf; \ 107 ${MAKE} objlink; \ 108 ${MAKE} ${SENDMAILCF}; \ 109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 obj/${SENDMAILCF} \ 110 ${DESTDIR}/etc/sendmail.cf) 111 (cd ${.CURDIR}/..; \ 112 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 113 ${DESTDIR}/) 114 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 115 116distrib-dirs: 117 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 118 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 119# Compatibility stuff, remove obsoleted links, if exists 120 if [ -d ${DESTDIR}/usr/share/locale ] ; \ 121 then \ 122 cd ${DESTDIR}/usr/share/locale; \ 123 for l in ${LATIN1LINKS} ; do \ 124 if [ -h $$l.ISO_8859-1 ]; then \ 125 rm $$l.ISO_8859-1; \ 126 fi ; \ 127 done; \ 128 fi 129 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 130 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 131 -p ${DESTDIR}/usr/include 132.if defined(MAKE_LOCAL) 133 mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local 134.endif 135 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 136 cd ${DESTDIR}/usr/share/locale; \ 137 set - `cat ${.CURDIR}/locale.alias`; \ 138 while [ $$# -gt 0 ] ; \ 139 do \ 140 rm -rf "$$1"; \ 141 ln -s "$$2" "$$1"; \ 142 shift; shift; \ 143 done 144 cd ${DESTDIR}/usr/share/nls; \ 145 set - `cat ${.CURDIR}/locale.alias`; \ 146 while [ $$# -gt 0 ] ; \ 147 do \ 148 rm -rf "$$1"; \ 149 ln -s "$$2" "$$1"; \ 150 shift; shift; \ 151 done; \ 152 rm -rf POSIX; \ 153 ln -s C POSIX 154.if defined(MAKE_LOCAL) 155 cd ${DESTDIR}/usr/local/share/nls; \ 156 set - `cat ${.CURDIR}/locale.alias`; \ 157 while [ $$# -gt 0 ] ; \ 158 do \ 159 rm -rf "$$1"; \ 160 ln -s "$$2" "$$1"; \ 161 shift; shift; \ 162 done; \ 163 rm -rf POSIX; \ 164 ln -s C POSIX 165.endif 166 167.include <bsd.prog.mk> 168