Makefile revision 28204
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.157 1997/08/13 12:56:12 danny 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 24 25MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 26 BSD.var.dist BSD.x11.dist 27NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 28PPPCNF= ppp.conf.filter.sample ppp.conf.iij.sample ppp.conf.sample \ 29 ppp.conf.server.sample ppp.dialup.sample ppp.linkup.sample \ 30 ppp.pap.dialup.sample ppp.secret.sample ppp.deny ppp.secret.sample 31 32 33# Special top level files for FreeBSD 34COPYRIGHT= COPYRIGHT 35FREEBSD= 36FREEBSD+= ${COPYRIGHT} 37 38# Compatibility stuff, remove those links 39LATIN1LINKS = \ 40 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 41 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 42 pt_PT sv_SE 43 44all depend etc install lint: 45 46distribute: 47 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 48 49distribution: 50 (cd ${.CURDIR}; \ 51 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 52 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 54 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 55 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 56 ${DESTDIR}/var/cron/log; \ 57 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 58 master.passwd ${DESTDIR}/etc; \ 59 ( cd ${.CURDIR}/cron.d; ${MAKE} install );\ 60 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\ 61 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 62 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 63 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 64 ( cd ${.CURDIR}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \ 65 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 66 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 67 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 68 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 69 (cd ${.CURDIR}/root; \ 70 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 71 ${DESTDIR}/root/.cshrc; \ 72 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 73 ${DESTDIR}/root/.klogin; \ 74 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 75 ${DESTDIR}/root/.login; \ 76 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 77 ${DESTDIR}/root/.profile; \ 78 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 79 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 80 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 81 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 82 ${MTREE} ${DESTDIR}/etc/mtree 83 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 84 ${NAMEDB} ${DESTDIR}/etc/namedb 85 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 86 ${PPPCNF} ${DESTDIR}/etc/ppp 87 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 88 ${DESTDIR}/etc/dumpdates 89 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 90 ${DESTDIR}/var/db/locate.database 91 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 92 ${DESTDIR}/var/log/lpd-errs 93 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 94 ${DESTDIR}/var/log/maillog 95 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 96 ${DESTDIR}/var/log/lastlog 97 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 98 ${DESTDIR}/var/log/messages 99 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 100 ${DESTDIR}/var/log/slip.log 101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 102 ${DESTDIR}/var/log/ppp.log 103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 104 ${DESTDIR}/var/log/wtmp 105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 106 ${DESTDIR}/var/run/utmp 107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 108 ${DESTDIR}/var/crash 109 (cd ${.CURDIR}/..; \ 110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 111 ${DESTDIR}/) 112 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 113 114distrib-dirs: 115 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 116 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 117# Compatibility stuff, remove obsoleted links, if exists 118 if [ -d ${DESTDIR}/usr/share/locale ] ; \ 119 then \ 120 cd ${DESTDIR}/usr/share/locale; \ 121 for l in ${LATIN1LINKS} ; do \ 122 if [ -h $$l.ISO_8859-1 ]; then \ 123 rm $$l.ISO_8859-1; \ 124 fi ; \ 125 done; \ 126 fi 127 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 128 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 129 -p ${DESTDIR}/usr/include 130 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 131 cd ${DESTDIR}/usr/share/locale; \ 132 set - `cat ${.CURDIR}/locale.alias`; \ 133 while [ $$# -gt 0 ] ; \ 134 do \ 135 rm -rf "$$1"; \ 136 ln -s "$$2" "$$1"; \ 137 shift; shift; \ 138 done 139 cd ${DESTDIR}/usr/share/nls; \ 140 set - `cat ${.CURDIR}/locale.alias`; \ 141 while [ $$# -gt 0 ] ; \ 142 do \ 143 rm -rf "$$1"; \ 144 ln -s "$$2" "$$1"; \ 145 shift; shift; \ 146 done; \ 147 rm -rf POSIX; \ 148 ln -s C POSIX 149 150.include <bsd.prog.mk> 151