Makefile revision 28159
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.155 1997/08/12 18:23:22 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.conf login.access motd modems networks \ 10 newsyslog.conf phones pccard.conf.sample printcap profile protocols \ 11 rc rc.conf rc.firewall rc.local rc.network rc.pccard rc.serial \ 12 rc.shutdown etc.${MACHINE}/rc.${MACHINE} \ 13 remote security services 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 ${.CURDIR}/../usr.bin/locate/locate/locate.rc 18 19# -rw-rw-rw- 20BIN2= motd 21 22# -rwxr-xr-x root.wheel, for the new cron root.wheel 23BIN3= netstart pccard_ether 24CRONDIRS= cron.d/daily cron.d/weekly cron.d/monthly 25 26MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 27 BSD.var.dist BSD.x11.dist 28NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 29PPPCNF= ppp.conf.filter.sample ppp.conf.iij.sample ppp.conf.sample \ 30 ppp.conf.server.sample ppp.dialup.sample ppp.linkup.sample \ 31 ppp.pap.dialup.sample ppp.secret.sample 32 33 34# Special top level files for FreeBSD 35COPYRIGHT= COPYRIGHT 36FREEBSD= 37FREEBSD+= ${COPYRIGHT} 38 39# Compatibility stuff, remove those links 40LATIN1LINKS = \ 41 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 42 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 43 pt_PT sv_SE 44 45all depend etc install lint: 46 47distribute: 48 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 49 50distribution: 51 (cd ${.CURDIR}; \ 52 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 55 tar -cBf - ${CRONDIRS} | tar -xvpBf - -C ${DESTDIR}/etc; \ 56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 57 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 58 ${DESTDIR}/var/cron/log; \ 59 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 60 master.passwd ${DESTDIR}/etc; \ 61 ( cd ${.CURDIR}/cron.d; ${MAKE} install );\ 62 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\ 63 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 64 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 65 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 66 ( cd ${.CURDIR}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \ 67 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 68 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 69 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 70 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 71 (cd ${.CURDIR}/root; \ 72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 73 ${DESTDIR}/root/.cshrc; \ 74 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 75 ${DESTDIR}/root/.klogin; \ 76 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 77 ${DESTDIR}/root/.login; \ 78 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 79 ${DESTDIR}/root/.profile; \ 80 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 81 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 82 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 83 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 84 ${MTREE} ${DESTDIR}/etc/mtree 85 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 86 ${NAMEDB} ${DESTDIR}/etc/namedb 87 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 88 ${PPPCNF} ${DESTDIR}/etc/ppp 89 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 90 ${DESTDIR}/etc/dumpdates 91 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 92 ${DESTDIR}/var/db/locate.database 93 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 94 ${DESTDIR}/var/log/lpd-errs 95 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 96 ${DESTDIR}/var/log/maillog 97 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 98 ${DESTDIR}/var/log/lastlog 99 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 100 ${DESTDIR}/var/log/messages 101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 102 ${DESTDIR}/var/log/slip.log 103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 104 ${DESTDIR}/var/log/ppp.log 105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 106 ${DESTDIR}/var/log/wtmp 107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 108 ${DESTDIR}/var/run/utmp 109 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 110 ${DESTDIR}/var/crash 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 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 133 cd ${DESTDIR}/usr/share/locale; \ 134 set - `cat ${.CURDIR}/locale.alias`; \ 135 while [ $$# -gt 0 ] ; \ 136 do \ 137 rm -rf "$$1"; \ 138 ln -s "$$2" "$$1"; \ 139 shift; shift; \ 140 done 141 cd ${DESTDIR}/usr/share/nls; \ 142 set - `cat ${.CURDIR}/locale.alias`; \ 143 while [ $$# -gt 0 ] ; \ 144 do \ 145 rm -rf "$$1"; \ 146 ln -s "$$2" "$$1"; \ 147 shift; shift; \ 148 done; \ 149 rm -rf POSIX; \ 150 ln -s C POSIX 151 152.include <bsd.prog.mk> 153