Makefile revision 491
137Srgrimes#	@(#)Makefile	5.11 (Berkeley) 5/21/91
237Srgrimes
3358SrgrimesNOOBJ=	noobj
437Srgrimes
537Srgrimes# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
637Srgrimes# -rw-r--r--
7147SrgrimesBINOWN= root
8147SrgrimesBINGRP= wheel
9147SrgrimesBIN1=	aliases csh.cshrc csh.login csh.logout dm.conf \
10207Snate	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
11377Srgrimes	inetd.conf motd myname netstart networks phones \
12147Srgrimes	printcap protocols rc rc.local remote security services shells \
13147Srgrimes	syslog.conf ttys etc.${MACHINE}/disktab rpc
1437Srgrimes
1537Srgrimes# -rw-rw-rw-
1637SrgrimesBIN2=	motd
1737Srgrimes
18147Srgrimes# -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
19147SrgrimesBIN3=	daily weekly monthly
20147Srgrimes
21491SrgrimesMTREE=	BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist
2237SrgrimesNAMEDB=	localhost.rev named.boot root.cache
2337SrgrimesPCS=	pcs750.bin
2437SrgrimesWCS1=	wcs fppwcs poc poc1 poc2 fppoc
2537SrgrimesWCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
2637Srgrimes
27263Srgrimes# Special top level files for FreeBSD
28284SrgrimesCOPYRIGHT= COPYRIGHT
29355SrgrimesFREEBSD= CONTRIB.386BSD CONTRIB.FreeBSD RELNOTES.FreeBSD ${COPYRIGHT}
30277Srgrimes#
31277Srgrimes# Floppy drive name and files for building FreeBSD Floppies
32284SrgrimesFLOPPY?=	fd0
33463SrgrimesMOUNT?=		/mnt
34284Srgrimes#
35284SrgrimesMDEC=		usr/mdec/bootfd usr/mdec/fdboot
36284SrgrimesMDEC+=		usr/mdec/bootsd usr/mdec/sdboot
37284SrgrimesMDEC+=		usr/mdec/bootwd usr/mdec/wdboot
38284Srgrimes#
39284SrgrimesKC_DIRS=	dev mnt
40284SrgrimesKC_FILES=	${COPYRIGHT}
41284SrgrimesKC_FILES+=	bin/[ bin/cp bin/echo bin/sh bin/test
42284SrgrimesKC_FILES+=	sbin/fsck sbin/halt sbin/init sbin/mount sbin/umount
43284Srgrimes#
44358SrgrimesFILESYSTEM_DIRS=	bin dev etc mnt sbin usr usr/bin usr/mdec usr/sbin
45358SrgrimesFILESYSTEM_TREES=	dev
46358SrgrimesFILESYSTEM_FILES=	${COPYRIGHT}
47452SrgrimesFILESYSTEM_FILES+=	bin/[ bin/expr bin/ls bin/mkdir bin/rm
48358SrgrimesFILESYSTEM_FILES+=	bin/sh bin/sync bin/test
49412SalmFILESYSTEM_FILES+=	dev/MAKEDEV
50358SrgrimesFILESYSTEM_FILES+=	etc/group
51452SrgrimesFILESYSTEM_FILES+=	etc/master.passwd etc/passwd etc/pwd.db
52358SrgrimesFILESYSTEM_FILES+=	sbin/disklabel sbin/halt sbin/init
53452SrgrimesFILESYSTEM_FILES+=	sbin/mount sbin/mount_pcfs
54358SrgrimesFILESYSTEM_FILES+=	sbin/newfs
55358SrgrimesFILESYSTEM_FILES+=	sbin/umount
56412SalmFILESYSTEM_FILES+=	sbin/fdisk
57358SrgrimesFILESYSTEM_FILES+=	usr/bin/cpio
58358SrgrimesFILESYSTEM_FILES+=	${MDEC}
59358SrgrimesFILESYSTEM_FILES+=	usr/sbin/bad144
60263Srgrimes
61358SrgrimesCPIO_FILES=	${COPYRIGHT}
62358SrgrimesCPIO_FILES+=	usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat
63452SrgrimesCPIO_CPIO=	bin/chmod bin/cat bin/cp bin/dd bin/df bin/mv bin/pwd bin/stty
64481SalmCPIO_CPIO+=	etc/protocols etc/remote etc/services etc/spwd.db
65452SrgrimesCPIO_CPIO+=	sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_isofs
66452SrgrimesCPIO_CPIO+=	sbin/reboot sbin/route sbin/slattach
67358SrgrimesCPIO_CPIO+=	tmp
68358SrgrimesCPIO_CPIO+=	usr/bin/awk usr/bin/chgrp usr/bin/ftp
69358SrgrimesCPIO_CPIO+=	usr/bin/more usr/bin/tar usr/bin/tip
70358SrgrimesCPIO_CPIO+=	usr/bin/elvis usr/bin/ex usr/bin/vi usr/bin/view
71358SrgrimesCPIO_CPIO+=	usr/sbin/update usr/sbin/chown
72482SalmCPIO_CPIO_DIRS=	var var/tmp var/run var/spool var/spool/lock
73284Srgrimes
74347SrgrimesCRYPT_LIB=	lib/libcrypt
75372SrgrimesCRYPT_SRCS=	bin/ed bin/rcp
76372SrgrimesCRYPT_SRCS+=	libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind
77372SrgrimesCRYPT_SRCS+=	libexec/rshd libexec/telnetd libexec/uucpd
78372SrgrimesCRYPT_SRCS+=	usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd
79372SrgrimesCRYPT_SRCS+=	usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet
80372SrgrimesCRYPT_DIRS=	bin usr usr/bin usr/lib usr/libexec 
81347Srgrimes
8237Srgrimesall clean cleandir depend etc install lint:
8337Srgrimes
84347Srgrimescrypt:
85347Srgrimes	rm -f ${LIBCRYPT};
86347Srgrimes	(cd ${.CURDIR}/../${CRYPT_LIB}; \
87355Srgrimes		${MAKE} cleandir obj depend all install)
88372Srgrimes	for i in ${CRYPT_SRCS}; do \
89347Srgrimes		cd ${.CURDIR}/../$$i; \
90355Srgrimes		${MAKE} cleandir obj depend all; \
91347Srgrimes	done
92347Srgrimes	
93347Srgrimesnon-crypt:
94347Srgrimes	rm -f ${LIBCRYPT}
95372Srgrimes	for i in ${CRYPT_SRCS}; do \
96347Srgrimes		cd ${.CURDIR}/../$$i; \
97355Srgrimes		${MAKE} cleandir obj depend all; \
98347Srgrimes	done
99347Srgrimes	
100147Srgrimesdistribution: distrib-dirs
10137Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
10237Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
103147Srgrimes	install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc
104147Srgrimes	install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
105238Sroot	install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log
10637Srgrimes	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
107358Srgrimes	pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd
10837Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
10937Srgrimes	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
110347Srgrimes.if defined(CDROMDIST)
111147Srgrimes	(cd ${DESTDIR}/dev; sh MAKEDEV all)
112347Srgrimes.endif
11337Srgrimes	(cd root; \
11437Srgrimes		install -c -o root -g wheel -m 644 dot.cshrc \
11537Srgrimes		    ${DESTDIR}/root/.cshrc; \
11637Srgrimes		install -c -o root -g wheel -m 644 dot.klogin \
11737Srgrimes		    ${DESTDIR}/root/.klogin; \
11837Srgrimes		install -c -o root -g wheel -m 644 dot.login \
11937Srgrimes		    ${DESTDIR}/root/.login; \
12037Srgrimes		install -c -o root -g wheel -m 644 dot.profile \
12137Srgrimes		    ${DESTDIR}/root/.profile; \
12237Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
12337Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
12437Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
12537Srgrimes	cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
12637Srgrimes	    ${DESTDIR}/etc/mtree
12737Srgrimes	cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
12837Srgrimes	    ${DESTDIR}/etc/namedb
12937Srgrimes	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
13037Srgrimes	    ${DESTDIR}/etc/dumpdates
131147Srgrimes	install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
132147Srgrimes	    ${DESTDIR}/var/db/locate.database
13337Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
134147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
13537Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
13637Srgrimes	    ${DESTDIR}/var/log/maillog
13737Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
138288Srgrimes	    ${DESTDIR}/var/log/lastlog
139288Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
140147Srgrimes	    ${DESTDIR}/var/log/messages
14137Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
142147Srgrimes	    ${DESTDIR}/var/log/wtmp
143147Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
14437Srgrimes	    ${DESTDIR}/var/run/utmp
14537Srgrimes	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
146147Srgrimes	    fstab.* ${DESTDIR}/etc)
147347Srgrimes.if defined(NOCRYPT)
148355Srgrimes	${MAKE} non-crypt
149355Srgrimes	(cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install)
150347Srgrimes.else
151355Srgrimes	${MAKE} crypt
152355Srgrimes	(cd ..; ${MAKE} install)
153347Srgrimes.endif
154277Srgrimes	(cd ../usr.sbin/sendmail/src; \
155355Srgrimes	    ${MAKE} install; \
156277Srgrimes	 cd ../cf/cf; \
157355Srgrimes	    ${MAKE} tcpproto.cf; \
158238Sroot	    install -o root -g wheel -m 644 tcpproto.cf \
159238Sroot	        ${DESTDIR}/etc/sendmail.cf)
160277Srgrimes	(cd ../; \
161277Srgrimes	    install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/)
162355Srgrimes	(cd ..; ${MAKE} mdec; )
163333Srgrimes.if ${MACHINE} == "tahoe"
164333Srgrimes	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
165333Srgrimes	    ${DESTDIR}/)
166168Srgrimes.endif
167333Srgrimes.if ${MACHINE} == "vax"
168333Srgrimes	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
169333Srgrimes	    ${DESTDIR}/)
170333Srgrimes.endif
17137Srgrimes
17237Srgrimeshcx9-distribution:
17337Srgrimes	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
17437Srgrimes	    ${DESTDIR}/)
17537Srgrimes
176358Srgrimeskcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT
177320Srgrimes	(cd ../sys/compile; rm -rf GENERICAH GENERICBT)
178320Srgrimes	(cd ../sys/i386/conf; config GENERICAH; config GENERICBT)
179355Srgrimes	(cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \
180320Srgrimes	    install -c -o root -g wheel -m 755 386bsd \
181320Srgrimes	        ${DESTDIR}/386bsd.GENERICAH)
182355Srgrimes	(cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \
183320Srgrimes	    install -c -o root -g wheel -m 755 386bsd \
184320Srgrimes	        ${DESTDIR}/386bsd.GENERICBT)
185320Srgrimes
186358Srgrimeskcopy-floppy:
187277Srgrimes	disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
188277Srgrimes	newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space r${FLOPPY}a floppy5
189277Srgrimes	mount /dev/${FLOPPY}a ${MOUNT}
190333Srgrimes	chown root.wheel ${MOUNT}/.
191333Srgrimes	chmod 755 ${MOUNT}/.
192284Srgrimes	(cd ${DESTDIR}/; \
193320Srgrimes	    ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT})
194277Srgrimes	(cd ${MOUNT}/dev; \
195277Srgrimes	    sh ${DESTDIR}/dev/MAKEDEV std; \
196277Srgrimes	    rm -rf fd; \
197333Srgrimes	    sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0 sd1)
198284Srgrimes	(cd ${DESTDIR}/; \
199320Srgrimes	    ls ${KC_FILES} | cpio -pdamuv ${MOUNT})
200277Srgrimes	install -c -o root -g wheel -m 755 etc.i386/kc.profile \
201277Srgrimes	    ${MOUNT}/.profile
202320Srgrimes
203372Srgrimeskcopy-ah-floppy:
204372Srgrimes	${MAKE} kcopy-floppy
205320Srgrimes	(cd ../sys/compile/GENERICAH; \
206277Srgrimes	    install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
207277Srgrimes	df -ik ${MOUNT}
208277Srgrimes	umount /dev/${FLOPPY}a
209277Srgrimes	fsck /dev/r${FLOPPY}a
210372Srgrimes	dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/kcopy-ah-floppy \
211358Srgrimes		bs=15b count=160
212372Srgrimes	gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy-ah-floppy \
213372Srgrimes		>${RELEASEDIR}/floppies/kcopy-ah-floppy.gz
214277Srgrimes
215372Srgrimeskcopy-bt-floppy:
216372Srgrimes	${MAKE} kcopy-floppy
217320Srgrimes	(cd ../sys/compile/GENERICBT; \
218320Srgrimes	    install -c -o root -g wheel -m 755 386bsd ${MOUNT}/)
219320Srgrimes	df -ik ${MOUNT}
220320Srgrimes	umount /dev/${FLOPPY}a
221320Srgrimes	fsck /dev/r${FLOPPY}a
222372Srgrimes	dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/kcopy-bt-floppy \
223358Srgrimes		bs=15b count=160
224372Srgrimes	gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy-bt-floppy \
225372Srgrimes		>${RELEASEDIR}/floppies/kcopy-bt-floppy.gz
226320Srgrimes
227358Srgrimesfilesystem-floppy:
228284Srgrimes	disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
229284Srgrimes	newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space r${FLOPPY}a floppy5
230284Srgrimes	mount /dev/${FLOPPY}a ${MOUNT}
231333Srgrimes	chown root.wheel ${MOUNT}/.
232333Srgrimes	chmod 755 ${MOUNT}/.
233284Srgrimes	(cd ${DESTDIR}/; \
234358Srgrimes	    ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT})
235284Srgrimes	(cd ${MOUNT}/dev; \
236284Srgrimes	    sh ${DESTDIR}/dev/MAKEDEV std; \
237284Srgrimes	    rm -rf fd; \
238435Srgrimes	    sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 sd0 sd1; \
239435Srgrimes	    rm -f rfd1[b-z] fd1[b-z])
240284Srgrimes	(cd ${DESTDIR}/; \
241358Srgrimes	    ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT})
242284Srgrimes	install -c -o root -g wheel -m 755 etc.i386/inst1.profile \
243284Srgrimes	    ${MOUNT}/.profile
244284Srgrimes	install -c -o root -g wheel -m 755 etc.i386/inst1.install \
245284Srgrimes	    ${MOUNT}/install
246284Srgrimes	(cd ${MOUNT}/; \
247358Srgrimes	    ls ${FILESYSTEM_FILES} >/tmp/filelist; \
248358Srgrimes	    ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \
249358Srgrimes	    find ${FILESYSTEM_TREES} >>/tmp/filelist; \
250333Srgrimes	    sort -u /tmp/filelist >filelist; \
251333Srgrimes	    rm /tmp/filelist)
252284Srgrimes	df -ik ${MOUNT}
253284Srgrimes	umount /dev/${FLOPPY}a
254284Srgrimes	fsck /dev/r${FLOPPY}a
255372Srgrimes	dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/filesystem-floppy \
256358Srgrimes		bs=15b count=160
257372Srgrimes	gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesystem-floppy \
258372Srgrimes		>${RELEASEDIR}/floppies/filesystem-floppy.gz
259284Srgrimes
260358Srgrimescpio-floppy:
261284Srgrimes	disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd
262284Srgrimes	newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space r${FLOPPY}a floppy5
263284Srgrimes	mount /dev/${FLOPPY}a ${MOUNT}
264333Srgrimes	chown root.wheel ${MOUNT}/.
265333Srgrimes	chmod 755 ${MOUNT}/.
266284Srgrimes	(cd ${DESTDIR}/; \
267358Srgrimes		ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT})
268284Srgrimes	(cd ${DESTDIR}/; \
269444Srgrimes	    (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \
270444Srgrimes		cpio -oav | gzip -9 >${MOUNT}/inst2.cpio.gz)
271284Srgrimes	install -c -o root -g wheel -m 755 etc.i386/inst2.profile \
272284Srgrimes	    ${MOUNT}/.profile
273284Srgrimes	install -c -o root -g wheel -m 755 etc.i386/inst2.install \
274284Srgrimes	    ${MOUNT}/install
275284Srgrimes	df -ik ${MOUNT}
276284Srgrimes	umount /dev/${FLOPPY}a
277284Srgrimes	fsck /dev/r${FLOPPY}a
278372Srgrimes	dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/cpio-floppy \
279358Srgrimes		bs=15b count=160
280372Srgrimes	gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio-floppy \
281372Srgrimes		>${RELEASEDIR}/floppies/cpio-floppy.gz
282284Srgrimes
283372Srgrimesbin-tarball:
284372Srgrimes	(cd ${DESTDIR}; \
285372Srgrimes		tar cf - . | gzip --no-name -9 -c | \
286372Srgrimes			split -b 240640 - \
287436Srgrimes			${RELEASEDIR}/tarballs/bin_tgz.)
288372Srgrimes
289376Srgrimessrc-tarball:
290376Srgrimes	(cd ${DESTDIR}; \
291376Srgrimes		tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src | gzip --no-name -9 -c | \
292376Srgrimes			split -b 240640 - \
293436Srgrimes			${RELEASEDIR}/tarballs/src_tgz.)
294376Srgrimes
295376Srgrimesssrc-tarball:
296376Srgrimes	(cd ${DESTDIR}; \
297376Srgrimes		tar -cf - usr/src/${CRYPT_LIB} | gzip --no-name -9 -c | \
298376Srgrimes			split -b 240640 - \
299436Srgrimes			${RELEASEDIR}/tarballs/ssrc_tgz.)
300376Srgrimes
301372Srgrimesdes-tarball:
302372Srgrimes	rm -rf ${RELEASEDIR}/tmpdes
303372Srgrimes	mkdir ${RELEASEDIR}/tmpdes
304372Srgrimes	for i in ${CRYPT_DIRS}; do \
305372Srgrimes		cd ${RELEASEDIR}/tmpdes; \
306372Srgrimes		mkdir $$i; \
307372Srgrimes		chown ${BINOWN}.${GRPOWN} $$i; \
308372Srgrimes		chmod 755 $$i; \
309372Srgrimes	done
310372Srgrimes	# This is ugly, it force installs a /usr/lib/libcrypt.a so
311372Srgrimes	# that the other makes will be built with des.
312372Srgrimes	#
313372Srgrimes	(cd ${.CURDIR}/../${CRYPT_LIB}; \
314372Srgrimes		unset NOCRYPT; \
315372Srgrimes		DESTDIR=; export DESTDIR; \
316372Srgrimes		${MAKE} cleandir obj depend all install; \
317372Srgrimes		NOMAN=noman; export NOMAN; \
318372Srgrimes		DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \
319372Srgrimes		${MAKE} cleandir obj depend all install)
320372Srgrimes	for i in ${CRYPT_SRCS}; do \
321372Srgrimes		unset NOCRYPT; \
322372Srgrimes		DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \
323372Srgrimes		NOMAN=noman; export NOMAN; \
324372Srgrimes		cd ${.CURDIR}/../$$i; \
325372Srgrimes		${MAKE} cleandir obj depend all install; \
326372Srgrimes	done
327372Srgrimes	(cd ${RELEASEDIR}/tmpdes; \
328372Srgrimes		tar cf - . | gzip --no-name -9 -c | \
329372Srgrimes			split -b 240640 - \
330436Srgrimes			${RELEASEDIR}/tarballs/des_tgz.)
331372Srgrimes	rm -rf ${RELEASEDIR}/tmpdes
332372Srgrimes
333147Srgrimesdistrib-dirs:
334238Sroot	mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/
335147Srgrimes	mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var
336147Srgrimes	mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr
337372Srgrimes.if defined(CDROMDIST)
338372Srgrimes	mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local
339372Srgrimes.endif
340410Srgrimes	cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
341147Srgrimes
342372Srgrimesfloppies: kcopy-ah-floppy kcopy-bt-floppy filesystem-floppy \
343372Srgrimes	  cpio-floppy
344372Srgrimes
345376Srgrimesrelease: release-dirs distribution kcopy-kernels floppies \
346376Srgrimes	 bin-tarball des-tarball
347372Srgrimes	
348372Srgrimesrelease-dirs:
349372Srgrimes	rm -rf ${RELEASEDIR}/filesystem
350372Srgrimes	mkdir ${RELEASEDIR}/filesystem
351372Srgrimes	chown root.wheel ${RELEASEDIR}/filesystem
352372Srgrimes	chmod 755 ${RELEASEDIR}/filesystem
353372Srgrimes	rm -rf ${RELEASEDIR}/tarballs
354372Srgrimes	mkdir ${RELEASEDIR}/tarballs
355372Srgrimes	chown root.wheel ${RELEASEDIR}/tarballs
356372Srgrimes	chmod 755 ${RELEASEDIR}/tarballs
357372Srgrimes	rm -rf ${RELEASEDIR}/floppies
358372Srgrimes	mkdir ${RELEASEDIR}/floppies
359372Srgrimes	chown root.wheel ${RELEASEDIR}/floppies
360372Srgrimes	chmod 755 ${RELEASEDIR}/floppies
361372Srgrimes
36237Srgrimes.include <bsd.prog.mk>
363