Makefile revision 17148
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.138 1996/07/11 21:22:50 pst 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.fvwmrc \ 64 ${DESTDIR}/root/.fvwmrc; \ 65 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.Xdefaults \ 66 ${DESTDIR}/root/.Xdefaults; \ 67 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 dot.xsession \ 68 ${DESTDIR}/root/.xsession; \ 69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 70 ${DESTDIR}/root/.cshrc; \ 71 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 72 ${DESTDIR}/root/.klogin; \ 73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 74 ${DESTDIR}/root/.login; \ 75 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 76 ${DESTDIR}/root/.profile; \ 77 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 78 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 79 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 80 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 81 ${MTREE} ${DESTDIR}/etc/mtree 82 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 83 ${NAMEDB} ${DESTDIR}/etc/namedb 84 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 85 ${PPPCNF} ${DESTDIR}/etc/ppp 86 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 87 ${DESTDIR}/etc/dumpdates 88 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 89 ${DESTDIR}/var/db/locate.database 90 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 91 ${DESTDIR}/var/log/lpd-errs 92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 93 ${DESTDIR}/var/log/maillog 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 95 ${DESTDIR}/var/log/lastlog 96 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 97 ${DESTDIR}/var/log/messages 98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 99 ${DESTDIR}/var/log/slip.log 100 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 101 ${DESTDIR}/var/log/ppp.log 102 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 103 ${DESTDIR}/var/log/wtmp 104 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 105 ${DESTDIR}/var/run/utmp 106 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 107 ${DESTDIR}/var/crash 108 (cd ${.CURDIR}/../usr.sbin/sendmail/src; \ 109 ${MAKE} obj; \ 110 ${MAKE} all; \ 111 ${MAKE} install; \ 112 cd ../cf/cf; \ 113 ${MAKE} objlink; \ 114 ${MAKE} ${SENDMAILCF}; \ 115 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 obj/${SENDMAILCF} \ 116 ${DESTDIR}/etc/sendmail.cf) 117 (cd ${.CURDIR}/..; \ 118 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 119 ${DESTDIR}/) 120 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 121 122distrib-dirs: 123 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 124 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 125# Compatibility stuff, remove obsoleted links, if exists 126 if [ -d ${DESTDIR}/usr/share/locale ] ; \ 127 then \ 128 cd ${DESTDIR}/usr/share/locale; \ 129 for l in ${LATIN1LINKS} ; do \ 130 if [ -h $$l.ISO_8859-1 ]; then \ 131 rm $$l.ISO_8859-1; \ 132 fi ; \ 133 done; \ 134 fi 135 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 136 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 137 -p ${DESTDIR}/usr/include 138.if defined(MAKE_LOCAL) 139 mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local 140.endif 141 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 142 cd ${DESTDIR}/usr/share/locale; \ 143 set - `cat ${.CURDIR}/locale.alias`; \ 144 while [ $$# -gt 0 ] ; \ 145 do \ 146 rm -rf "$$1"; \ 147 ln -s "$$2" "$$1"; \ 148 shift; shift; \ 149 done 150 cd ${DESTDIR}/usr/share/nls; \ 151 set - `cat ${.CURDIR}/locale.alias`; \ 152 while [ $$# -gt 0 ] ; \ 153 do \ 154 rm -rf "$$1"; \ 155 ln -s "$$2" "$$1"; \ 156 shift; shift; \ 157 done; \ 158 rm -rf POSIX; \ 159 ln -s C POSIX 160.if defined(MAKE_LOCAL) 161 cd ${DESTDIR}/usr/local/share/nls; \ 162 set - `cat ${.CURDIR}/locale.alias`; \ 163 while [ $$# -gt 0 ] ; \ 164 do \ 165 rm -rf "$$1"; \ 166 ln -s "$$2" "$$1"; \ 167 shift; shift; \ 168 done; \ 169 rm -rf POSIX; \ 170 ln -s C POSIX 171.endif 172 173.include <bsd.prog.mk> 174