Commit | Line | Data |
---|---|---|
25767e9e RG |
1 | # @(#)Makefile 5.11 (Berkeley) 5/21/91 |
2 | ||
10e9d746 RG |
3 | LOCALTIME= US/Pacific |
4 | TZDIR=/usr/share/zoneinfo | |
5 | ||
25767e9e RG |
6 | NOOBJ= oobj |
7 | ||
8 | # disktab may be wrong -- hcx9 is a tahoe, but gets its own. | |
9 | # -rw-r--r-- | |
10e9d746 RG |
10 | BINOWN= root |
11 | BINGRP= wheel | |
12 | BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ | |
25767e9e | 13 | ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \ |
10e9d746 RG |
14 | man.conf motd myname netstart phones \ |
15 | printcap protocols rc rc.local remote security services shells \ | |
16 | syslog.conf ttys etc.${MACHINE}/disktab rpc | |
25767e9e RG |
17 | |
18 | # -rw-rw-rw- | |
19 | BIN2= motd | |
20 | ||
10e9d746 RG |
21 | # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel |
22 | BIN3= daily weekly monthly | |
23 | ||
25767e9e RG |
24 | MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist |
25 | NAMEDB= localhost.rev named.boot root.cache | |
26 | PCS= pcs750.bin | |
27 | WCS1= wcs fppwcs poc poc1 poc2 fppoc | |
28 | WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual | |
29 | ||
30 | all clean cleandir depend etc install lint: | |
31 | ||
10e9d746 | 32 | distribution: distrib-dirs |
25767e9e RG |
33 | install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc |
34 | install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc | |
10e9d746 RG |
35 | install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc |
36 | install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root | |
25767e9e | 37 | install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc |
10e9d746 | 38 | (cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd) |
25767e9e RG |
39 | install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ |
40 | MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev | |
10e9d746 | 41 | (cd ${DESTDIR}/dev; sh MAKEDEV all) |
25767e9e RG |
42 | (cd root; \ |
43 | install -c -o root -g wheel -m 644 dot.cshrc \ | |
44 | ${DESTDIR}/root/.cshrc; \ | |
45 | install -c -o root -g wheel -m 644 dot.klogin \ | |
46 | ${DESTDIR}/root/.klogin; \ | |
47 | install -c -o root -g wheel -m 644 dot.login \ | |
48 | ${DESTDIR}/root/.login; \ | |
49 | install -c -o root -g wheel -m 644 dot.profile \ | |
50 | ${DESTDIR}/root/.profile; \ | |
51 | rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ | |
52 | ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ | |
53 | ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) | |
54 | cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ | |
55 | ${DESTDIR}/etc/mtree | |
56 | cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ | |
57 | ${DESTDIR}/etc/namedb | |
10e9d746 RG |
58 | /bin/rm -f ${DESTDIR}/etc/localtime |
59 | ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime | |
25767e9e RG |
60 | install -c -o ${BINOWN} -g operator -m 664 /dev/null \ |
61 | ${DESTDIR}/etc/dumpdates | |
10e9d746 RG |
62 | install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ |
63 | ${DESTDIR}/var/db/locate.database | |
25767e9e | 64 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
10e9d746 | 65 | ${DESTDIR}/var/log/lpd-errs |
25767e9e RG |
66 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
67 | ${DESTDIR}/var/log/maillog | |
68 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ | |
10e9d746 RG |
69 | ${DESTDIR}/var/log/messages |
70 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ | |
71 | ${DESTDIR}/var/log/wtmp | |
25767e9e RG |
72 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
73 | ${DESTDIR}/var/run/utmp | |
74 | (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ | |
10e9d746 | 75 | fstab.* ${DESTDIR}/etc) |
25767e9e RG |
76 | .if ${MACHINE} == "tahoe" |
77 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ | |
78 | ${DESTDIR}/) | |
79 | .endif | |
80 | .if ${MACHINE} == "vax" | |
81 | (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ | |
82 | ${DESTDIR}/) | |
83 | .endif | |
84 | ||
85 | hcx9-distribution: | |
86 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ | |
87 | ${DESTDIR}/) | |
88 | ||
10e9d746 RG |
89 | distrib-dirs: |
90 | mtree -du -f mtree/BSD.root.dist -p ${DESTDIR} | |
91 | mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var | |
92 | mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr | |
93 | (cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \ | |
94 | ln -s usr/src/sys.386bsd sys ) | |
95 | ||
25767e9e | 96 | .include <bsd.prog.mk> |