1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2 # $Id: Makefile,v 1.174 1998/09/22 15:10:18 max Exp $
6 BIN1= aliases amd.map crontab csh.cshrc csh.login csh.logout dm.conf \
7 fbtab ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
8 inetd.conf login.conf login.access motd modems networks \
9 newsyslog.conf phones pccard.conf.sample printcap profile protocols \
10 rc rc.conf rc.devfs rc.firewall rc.local rc.network rc.pccard \
11 rc.serial rc.shutdown etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \
12 remote security services shells syslog.conf \
13 etc.${MACHINE_ARCH}/ttys etc.${MACHINE_ARCH}/disktab rpc make.conf \
14 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \
15 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \
16 ${.CURDIR}/../usr.bin/locate/locate/locate.rc
18 # -rwxr-xr-x root.wheel, for the new cron root.wheel
19 BIN2= netstart pccard_ether
21 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
22 BSD.var.dist BSD.x11.dist
23 NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost
24 PPPCNF= ppp.conf.sample ppp.linkup.sample ppp.linkdown.sample \
25 ppp.secret.sample ppp.deny ppp.shells.sample
26 NOSPAM= Makefile README sendmail.cf.additions
29 # Special top level files for FreeBSD
32 FREEBSD+= ${COPYRIGHT}
34 # Compatibility stuff, remove those links
36 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \
37 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \
43 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin
44 .if defined(OBJFORMAT)
45 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat
51 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \
52 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \
53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
54 ${DESTDIR}/var/cron/log; \
55 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \
56 master.passwd ${DESTDIR}/etc; \
57 ( cd ${.CURDIR}/periodic; ${MAKE} install );\
58 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\
59 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \
60 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \
61 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \
62 ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \
63 ( cd ${.CURDIR}/../sys/i386/boot/biosboot; ${MAKE} install-boothelp ); \
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_ARCH}/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>