Makefile revision 444
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 2137SrgrimesMTREE= 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 33284SrgrimesMOUNT= /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} 47435SrgrimesFILESYSTEM_FILES+= bin/[ bin/df bin/expr bin/ls bin/mkdir 48358SrgrimesFILESYSTEM_FILES+= bin/sh bin/sync bin/test 49412SalmFILESYSTEM_FILES+= dev/MAKEDEV 50358SrgrimesFILESYSTEM_FILES+= etc/group 51358SrgrimesFILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db etc/spwd.db 52358SrgrimesFILESYSTEM_FILES+= sbin/disklabel sbin/halt sbin/init 53358SrgrimesFILESYSTEM_FILES+= sbin/mount sbin/mount_isofs 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 63372SrgrimesCPIO_CPIO= bin/chmod bin/cp bin/dd bin/mv bin/pwd bin/rm bin/stty 64358SrgrimesCPIO_CPIO+= etc/protocols etc/services 65358SrgrimesCPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod 66372SrgrimesCPIO_CPIO+= 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 72444SrgrimesCPIO_CPIO_DIRS= var var/tmp 73284Srgrimes 74435SrgrimesDOS_FILES= ${COPYRIGHT} 75435SrgrimesDOS_FILES+= bin/cat bin/dd bin/ed 76412SalmDOS_FILES+= usr/bin/cksum usr/bin/mt 77412SalmDOS_FILES+= sbin/mknod sbin/ping sbin/shutdown sbin/st sbin/reboot 78412Salm 79347SrgrimesCRYPT_LIB= lib/libcrypt 80372SrgrimesCRYPT_SRCS= bin/ed bin/rcp 81372SrgrimesCRYPT_SRCS+= libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind 82372SrgrimesCRYPT_SRCS+= libexec/rshd libexec/telnetd libexec/uucpd 83372SrgrimesCRYPT_SRCS+= usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd 84372SrgrimesCRYPT_SRCS+= usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet 85372SrgrimesCRYPT_DIRS= bin usr usr/bin usr/lib usr/libexec 86347Srgrimes 8737Srgrimesall clean cleandir depend etc install lint: 8837Srgrimes 89347Srgrimescrypt: 90347Srgrimes rm -f ${LIBCRYPT}; 91347Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 92355Srgrimes ${MAKE} cleandir obj depend all install) 93372Srgrimes for i in ${CRYPT_SRCS}; do \ 94347Srgrimes cd ${.CURDIR}/../$$i; \ 95355Srgrimes ${MAKE} cleandir obj depend all; \ 96347Srgrimes done 97347Srgrimes 98347Srgrimesnon-crypt: 99347Srgrimes rm -f ${LIBCRYPT} 100372Srgrimes for i in ${CRYPT_SRCS}; do \ 101347Srgrimes cd ${.CURDIR}/../$$i; \ 102355Srgrimes ${MAKE} cleandir obj depend all; \ 103347Srgrimes done 104347Srgrimes 105147Srgrimesdistribution: distrib-dirs 10637Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 10737Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 108147Srgrimes install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 109147Srgrimes install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 110238Sroot install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log 11137Srgrimes install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 112358Srgrimes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 11337Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 11437Srgrimes MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 115347Srgrimes.if defined(CDROMDIST) 116147Srgrimes (cd ${DESTDIR}/dev; sh MAKEDEV all) 117347Srgrimes.endif 11837Srgrimes (cd root; \ 11937Srgrimes install -c -o root -g wheel -m 644 dot.cshrc \ 12037Srgrimes ${DESTDIR}/root/.cshrc; \ 12137Srgrimes install -c -o root -g wheel -m 644 dot.klogin \ 12237Srgrimes ${DESTDIR}/root/.klogin; \ 12337Srgrimes install -c -o root -g wheel -m 644 dot.login \ 12437Srgrimes ${DESTDIR}/root/.login; \ 12537Srgrimes install -c -o root -g wheel -m 644 dot.profile \ 12637Srgrimes ${DESTDIR}/root/.profile; \ 12737Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 12837Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 12937Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 13037Srgrimes cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 13137Srgrimes ${DESTDIR}/etc/mtree 13237Srgrimes cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 13337Srgrimes ${DESTDIR}/etc/namedb 13437Srgrimes install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 13537Srgrimes ${DESTDIR}/etc/dumpdates 136147Srgrimes install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 137147Srgrimes ${DESTDIR}/var/db/locate.database 13837Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 139147Srgrimes ${DESTDIR}/var/log/lpd-errs 14037Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 14137Srgrimes ${DESTDIR}/var/log/maillog 14237Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 143288Srgrimes ${DESTDIR}/var/log/lastlog 144288Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 145147Srgrimes ${DESTDIR}/var/log/messages 14637Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 147147Srgrimes ${DESTDIR}/var/log/wtmp 148147Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 14937Srgrimes ${DESTDIR}/var/run/utmp 15037Srgrimes (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 151147Srgrimes fstab.* ${DESTDIR}/etc) 152347Srgrimes.if defined(NOCRYPT) 153355Srgrimes ${MAKE} non-crypt 154355Srgrimes (cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install) 155347Srgrimes.else 156355Srgrimes ${MAKE} crypt 157355Srgrimes (cd ..; ${MAKE} install) 158347Srgrimes.endif 159277Srgrimes (cd ../usr.sbin/sendmail/src; \ 160355Srgrimes ${MAKE} install; \ 161277Srgrimes cd ../cf/cf; \ 162355Srgrimes ${MAKE} tcpproto.cf; \ 163238Sroot install -o root -g wheel -m 644 tcpproto.cf \ 164238Sroot ${DESTDIR}/etc/sendmail.cf) 165277Srgrimes (cd ../; \ 166277Srgrimes install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) 167355Srgrimes (cd ..; ${MAKE} mdec; ) 168333Srgrimes.if ${MACHINE} == "tahoe" 169333Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 170333Srgrimes ${DESTDIR}/) 171168Srgrimes.endif 172333Srgrimes.if ${MACHINE} == "vax" 173333Srgrimes (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 174333Srgrimes ${DESTDIR}/) 175333Srgrimes.endif 17637Srgrimes 17737Srgrimeshcx9-distribution: 17837Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 17937Srgrimes ${DESTDIR}/) 18037Srgrimes 181358Srgrimeskcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT 182320Srgrimes (cd ../sys/compile; rm -rf GENERICAH GENERICBT) 183320Srgrimes (cd ../sys/i386/conf; config GENERICAH; config GENERICBT) 184355Srgrimes (cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \ 185320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 186320Srgrimes ${DESTDIR}/386bsd.GENERICAH) 187355Srgrimes (cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \ 188320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 189320Srgrimes ${DESTDIR}/386bsd.GENERICBT) 190320Srgrimes 191358Srgrimeskcopy-floppy: 192277Srgrimes disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd 193277Srgrimes newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space r${FLOPPY}a floppy5 194277Srgrimes mount /dev/${FLOPPY}a ${MOUNT} 195333Srgrimes chown root.wheel ${MOUNT}/. 196333Srgrimes chmod 755 ${MOUNT}/. 197284Srgrimes (cd ${DESTDIR}/; \ 198320Srgrimes ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT}) 199277Srgrimes (cd ${MOUNT}/dev; \ 200277Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 201277Srgrimes rm -rf fd; \ 202333Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0 sd1) 203284Srgrimes (cd ${DESTDIR}/; \ 204320Srgrimes ls ${KC_FILES} | cpio -pdamuv ${MOUNT}) 205277Srgrimes install -c -o root -g wheel -m 755 etc.i386/kc.profile \ 206277Srgrimes ${MOUNT}/.profile 207320Srgrimes 208372Srgrimeskcopy-ah-floppy: 209372Srgrimes ${MAKE} kcopy-floppy 210320Srgrimes (cd ../sys/compile/GENERICAH; \ 211277Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 212277Srgrimes df -ik ${MOUNT} 213277Srgrimes umount /dev/${FLOPPY}a 214277Srgrimes fsck /dev/r${FLOPPY}a 215372Srgrimes dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/kcopy-ah-floppy \ 216358Srgrimes bs=15b count=160 217372Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy-ah-floppy \ 218372Srgrimes >${RELEASEDIR}/floppies/kcopy-ah-floppy.gz 219277Srgrimes 220372Srgrimeskcopy-bt-floppy: 221372Srgrimes ${MAKE} kcopy-floppy 222320Srgrimes (cd ../sys/compile/GENERICBT; \ 223320Srgrimes install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 224320Srgrimes df -ik ${MOUNT} 225320Srgrimes umount /dev/${FLOPPY}a 226320Srgrimes fsck /dev/r${FLOPPY}a 227372Srgrimes dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/kcopy-bt-floppy \ 228358Srgrimes bs=15b count=160 229372Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy-bt-floppy \ 230372Srgrimes >${RELEASEDIR}/floppies/kcopy-bt-floppy.gz 231320Srgrimes 232358Srgrimesfilesystem-floppy: 233284Srgrimes disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd 234284Srgrimes newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space r${FLOPPY}a floppy5 235284Srgrimes mount /dev/${FLOPPY}a ${MOUNT} 236333Srgrimes chown root.wheel ${MOUNT}/. 237333Srgrimes chmod 755 ${MOUNT}/. 238284Srgrimes (cd ${DESTDIR}/; \ 239358Srgrimes ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) 240284Srgrimes (cd ${MOUNT}/dev; \ 241284Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 242284Srgrimes rm -rf fd; \ 243435Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 sd0 sd1; \ 244435Srgrimes rm -f rfd1[b-z] fd1[b-z]) 245284Srgrimes (cd ${DESTDIR}/; \ 246358Srgrimes ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}) 247284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.profile \ 248284Srgrimes ${MOUNT}/.profile 249284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.install \ 250284Srgrimes ${MOUNT}/install 251284Srgrimes (cd ${MOUNT}/; \ 252358Srgrimes ls ${FILESYSTEM_FILES} >/tmp/filelist; \ 253358Srgrimes ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ 254358Srgrimes find ${FILESYSTEM_TREES} >>/tmp/filelist; \ 255333Srgrimes sort -u /tmp/filelist >filelist; \ 256333Srgrimes rm /tmp/filelist) 257284Srgrimes df -ik ${MOUNT} 258284Srgrimes umount /dev/${FLOPPY}a 259284Srgrimes fsck /dev/r${FLOPPY}a 260372Srgrimes dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/filesystem-floppy \ 261358Srgrimes bs=15b count=160 262372Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesystem-floppy \ 263372Srgrimes >${RELEASEDIR}/floppies/filesystem-floppy.gz 264284Srgrimes 265358Srgrimescpio-floppy: 266284Srgrimes disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd 267284Srgrimes newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space r${FLOPPY}a floppy5 268284Srgrimes mount /dev/${FLOPPY}a ${MOUNT} 269333Srgrimes chown root.wheel ${MOUNT}/. 270333Srgrimes chmod 755 ${MOUNT}/. 271284Srgrimes (cd ${DESTDIR}/; \ 272358Srgrimes ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) 273284Srgrimes (cd ${DESTDIR}/; \ 274444Srgrimes (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ 275444Srgrimes cpio -oav | gzip -9 >${MOUNT}/inst2.cpio.gz) 276284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst2.profile \ 277284Srgrimes ${MOUNT}/.profile 278284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst2.install \ 279284Srgrimes ${MOUNT}/install 280284Srgrimes df -ik ${MOUNT} 281284Srgrimes umount /dev/${FLOPPY}a 282284Srgrimes fsck /dev/r${FLOPPY}a 283372Srgrimes dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/cpio-floppy \ 284358Srgrimes bs=15b count=160 285372Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio-floppy \ 286372Srgrimes >${RELEASEDIR}/floppies/cpio-floppy.gz 287284Srgrimes 288412Salmdos-floppy: 289412Salm mount -t pcfs /dev/${FLOPPY}a ${MOUNT} 290418Srgrimes (cd ${.CURDIR}/../; \ 291418Srgrimes cp sys/i386/floppy/* ${MOUNT}; \ 292412Salm cp ${DOS_FILES} ${MOUNT}) 293412Salm df -ik ${MOUNT} 294412Salm umount /dev/${FLOPPY}a 295412Salm dd if=/dev/r${FLOPPY}a of=${RELEASEDIR}/floppies/dos-floppy \ 296412Salm bs=15b count=160 297412Salm gzip --no-name -9 -c ${RELEASEDIR}/floppies/dos-floppy \ 298412Salm >${RELEASEDIR}/floppies/dos-floppy.gz 299412Salm 300372Srgrimesbin-tarball: 301372Srgrimes (cd ${DESTDIR}; \ 302372Srgrimes tar cf - . | gzip --no-name -9 -c | \ 303372Srgrimes split -b 240640 - \ 304436Srgrimes ${RELEASEDIR}/tarballs/bin_tgz.) 305372Srgrimes 306376Srgrimessrc-tarball: 307376Srgrimes (cd ${DESTDIR}; \ 308376Srgrimes tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src | gzip --no-name -9 -c | \ 309376Srgrimes split -b 240640 - \ 310436Srgrimes ${RELEASEDIR}/tarballs/src_tgz.) 311376Srgrimes 312376Srgrimesssrc-tarball: 313376Srgrimes (cd ${DESTDIR}; \ 314376Srgrimes tar -cf - usr/src/${CRYPT_LIB} | gzip --no-name -9 -c | \ 315376Srgrimes split -b 240640 - \ 316436Srgrimes ${RELEASEDIR}/tarballs/ssrc_tgz.) 317376Srgrimes 318372Srgrimesdes-tarball: 319372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 320372Srgrimes mkdir ${RELEASEDIR}/tmpdes 321372Srgrimes for i in ${CRYPT_DIRS}; do \ 322372Srgrimes cd ${RELEASEDIR}/tmpdes; \ 323372Srgrimes mkdir $$i; \ 324372Srgrimes chown ${BINOWN}.${GRPOWN} $$i; \ 325372Srgrimes chmod 755 $$i; \ 326372Srgrimes done 327372Srgrimes # This is ugly, it force installs a /usr/lib/libcrypt.a so 328372Srgrimes # that the other makes will be built with des. 329372Srgrimes # 330372Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 331372Srgrimes unset NOCRYPT; \ 332372Srgrimes DESTDIR=; export DESTDIR; \ 333372Srgrimes ${MAKE} cleandir obj depend all install; \ 334372Srgrimes NOMAN=noman; export NOMAN; \ 335372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 336372Srgrimes ${MAKE} cleandir obj depend all install) 337372Srgrimes for i in ${CRYPT_SRCS}; do \ 338372Srgrimes unset NOCRYPT; \ 339372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 340372Srgrimes NOMAN=noman; export NOMAN; \ 341372Srgrimes cd ${.CURDIR}/../$$i; \ 342372Srgrimes ${MAKE} cleandir obj depend all install; \ 343372Srgrimes done 344372Srgrimes (cd ${RELEASEDIR}/tmpdes; \ 345372Srgrimes tar cf - . | gzip --no-name -9 -c | \ 346372Srgrimes split -b 240640 - \ 347436Srgrimes ${RELEASEDIR}/tarballs/des_tgz.) 348372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 349372Srgrimes 350147Srgrimesdistrib-dirs: 351238Sroot mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ 352147Srgrimes mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var 353147Srgrimes mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr 354372Srgrimes.if defined(CDROMDIST) 355372Srgrimes mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local 356372Srgrimes.endif 357410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 358147Srgrimes 359372Srgrimesfloppies: kcopy-ah-floppy kcopy-bt-floppy filesystem-floppy \ 360372Srgrimes cpio-floppy 361372Srgrimes 362376Srgrimesrelease: release-dirs distribution kcopy-kernels floppies \ 363376Srgrimes bin-tarball des-tarball 364372Srgrimes 365372Srgrimesrelease-dirs: 366372Srgrimes rm -rf ${RELEASEDIR}/filesystem 367372Srgrimes mkdir ${RELEASEDIR}/filesystem 368372Srgrimes chown root.wheel ${RELEASEDIR}/filesystem 369372Srgrimes chmod 755 ${RELEASEDIR}/filesystem 370372Srgrimes rm -rf ${RELEASEDIR}/tarballs 371372Srgrimes mkdir ${RELEASEDIR}/tarballs 372372Srgrimes chown root.wheel ${RELEASEDIR}/tarballs 373372Srgrimes chmod 755 ${RELEASEDIR}/tarballs 374372Srgrimes rm -rf ${RELEASEDIR}/floppies 375372Srgrimes mkdir ${RELEASEDIR}/floppies 376372Srgrimes chown root.wheel ${RELEASEDIR}/floppies 377372Srgrimes chmod 755 ${RELEASEDIR}/floppies 378372Srgrimes 37937Srgrimes.include <bsd.prog.mk> 380