1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2 # $Id: Makefile,v 1.162 1997/10/20 00:35:17 jmb Exp $
7 BIN1= aliases amd.map crontab 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
22 # -rwxr-xr-x root.wheel, for the new cron root.wheel
23 BIN3= netstart pccard_ether
25 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
26 BSD.var.dist BSD.x11.dist
27 NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost
28 PPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
29 ppp.secret.sample ppp.deny ppp.shells.sample
30 NOSPAM= Makefile README sendmail.cf.additions
33 # Special top level files for FreeBSD
36 FREEBSD+= ${COPYRIGHT}
38 # Compatibility stuff, remove those links
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 \
44 all depend etc install lint:
47 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
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 600 /dev/null \
55 ${DESTDIR}/var/cron/log; \
56 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
57 master.passwd ${DESTDIR}/etc; \
58 ( cd ${.CURDIR}/periodic; ${MAKE} install );\
59 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
60 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
61 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
62 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
63 ( cd ${.CURDIR}/../usr.sbin/sendmail/cf/cf; ${MAKE} etc-sendmail.cf ); \
64 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \
65 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
66 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev )
67 (cd ${DESTDIR}/dev; sh MAKEDEV all) ;
68 (cd ${.CURDIR}/root; \
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 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \
87 ${NOSPAM} ${DESTDIR}/etc/mail
88 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
89 ${DESTDIR}/etc/dumpdates
90 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
91 ${DESTDIR}/var/db/locate.database
92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
93 ${DESTDIR}/var/log/lpd-errs
94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
95 ${DESTDIR}/var/log/maillog
96 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
97 ${DESTDIR}/var/log/lastlog
98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
99 ${DESTDIR}/var/log/messages
100 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
101 ${DESTDIR}/var/log/slip.log
102 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
103 ${DESTDIR}/var/log/ppp.log
104 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
105 ${DESTDIR}/var/log/wtmp
106 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
107 ${DESTDIR}/var/run/utmp
108 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \
111 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \
113 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; )
116 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
117 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
118 # Compatibility stuff, remove obsoleted links, if exists
119 if [ -d ${DESTDIR}/usr/share/locale ] ; \
121 cd ${DESTDIR}/usr/share/locale; \
122 for l in ${LATIN1LINKS} ; do \
123 if [ -h $$l.ISO_8859-1 ]; then \
128 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
129 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \
130 -p ${DESTDIR}/usr/include
131 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
132 cd ${DESTDIR}/usr/share/locale; \
133 set - `cat ${.CURDIR}/locale.alias`; \
134 while [ $$# -gt 0 ] ; \
140 cd ${DESTDIR}/usr/share/nls; \
141 set - `cat ${.CURDIR}/locale.alias`; \
142 while [ $$# -gt 0 ] ; \
151 .include <bsd.prog.mk>