Makefile revision 1027
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 28993SrgrimesCOPYRIGHT= COPYRIGHT 29993SrgrimesFREEBSD= CONTRIB.386BSD CONTRIB.FreeBSD 30993SrgrimesFREEBSD+= MIRROR.SITES RELNOTES.FreeBSD SUPPORT.TXT 31993SrgrimesFREEBSD+= ${COPYRIGHT} 32277Srgrimes# 33277Srgrimes# Floppy drive name and files for building FreeBSD Floppies 34284SrgrimesFLOPPY?= fd0 35463SrgrimesMOUNT?= /mnt 36568SrgrimesFLOPPY_TYPE?= floppy5 37284Srgrimes# 38284SrgrimesMDEC= usr/mdec/bootfd usr/mdec/fdboot 39284SrgrimesMDEC+= usr/mdec/bootsd usr/mdec/sdboot 40284SrgrimesMDEC+= usr/mdec/bootwd usr/mdec/wdboot 41284Srgrimes# 42284SrgrimesKC_DIRS= dev mnt 43284SrgrimesKC_FILES= ${COPYRIGHT} 44284SrgrimesKC_FILES+= bin/[ bin/cp bin/echo bin/sh bin/test 45284SrgrimesKC_FILES+= sbin/fsck sbin/halt sbin/init sbin/mount sbin/umount 46284Srgrimes# 47358SrgrimesFILESYSTEM_DIRS= bin dev etc mnt sbin usr usr/bin usr/mdec usr/sbin 48358SrgrimesFILESYSTEM_TREES= dev 49358SrgrimesFILESYSTEM_FILES= ${COPYRIGHT} 50452SrgrimesFILESYSTEM_FILES+= bin/[ bin/expr bin/ls bin/mkdir bin/rm 51358SrgrimesFILESYSTEM_FILES+= bin/sh bin/sync bin/test 52412SalmFILESYSTEM_FILES+= dev/MAKEDEV 53358SrgrimesFILESYSTEM_FILES+= etc/group 54452SrgrimesFILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db 55358SrgrimesFILESYSTEM_FILES+= sbin/disklabel sbin/halt sbin/init 56452SrgrimesFILESYSTEM_FILES+= sbin/mount sbin/mount_pcfs 57358SrgrimesFILESYSTEM_FILES+= sbin/newfs 58358SrgrimesFILESYSTEM_FILES+= sbin/umount 59412SalmFILESYSTEM_FILES+= sbin/fdisk 60358SrgrimesFILESYSTEM_FILES+= usr/bin/cpio 61358SrgrimesFILESYSTEM_FILES+= ${MDEC} 62358SrgrimesFILESYSTEM_FILES+= usr/sbin/bad144 63263Srgrimes 64358SrgrimesCPIO_FILES= ${COPYRIGHT} 65358SrgrimesCPIO_FILES+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat 66452SrgrimesCPIO_CPIO= bin/chmod bin/cat bin/cp bin/dd bin/df bin/mv bin/pwd bin/stty 67481SalmCPIO_CPIO+= etc/protocols etc/remote etc/services etc/spwd.db 68452SrgrimesCPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_isofs 69452SrgrimesCPIO_CPIO+= sbin/reboot sbin/route sbin/slattach 70358SrgrimesCPIO_CPIO+= usr/bin/awk usr/bin/chgrp usr/bin/ftp 71358SrgrimesCPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip 72358SrgrimesCPIO_CPIO+= usr/bin/elvis usr/bin/ex usr/bin/vi usr/bin/view 73358SrgrimesCPIO_CPIO+= usr/sbin/update usr/sbin/chown 74813SrgrimesCPIO_CPIO_DIRS= tmp var var/tmp var/run var/spool var/spool/lock 75284Srgrimes 76347SrgrimesCRYPT_LIB= lib/libcrypt 77372SrgrimesCRYPT_SRCS= bin/ed bin/rcp 78372SrgrimesCRYPT_SRCS+= libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind 79372SrgrimesCRYPT_SRCS+= libexec/rshd libexec/telnetd libexec/uucpd 80372SrgrimesCRYPT_SRCS+= usr.bin/bdes usr.bin/lock usr.bin/login usr.bin/passwd 81372SrgrimesCRYPT_SRCS+= usr.bin/rlogin usr.bin/rsh usr.bin/su usr.bin/telnet 82372SrgrimesCRYPT_DIRS= bin usr usr/bin usr/lib usr/libexec 83347Srgrimes 8437Srgrimesall clean cleandir depend etc install lint: 8537Srgrimes 86347Srgrimescrypt: 87347Srgrimes rm -f ${LIBCRYPT}; 88347Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 89355Srgrimes ${MAKE} cleandir obj depend all install) 90372Srgrimes for i in ${CRYPT_SRCS}; do \ 91347Srgrimes cd ${.CURDIR}/../$$i; \ 92355Srgrimes ${MAKE} cleandir obj depend all; \ 93347Srgrimes done 94347Srgrimes 95347Srgrimesnon-crypt: 96347Srgrimes rm -f ${LIBCRYPT} 97372Srgrimes for i in ${CRYPT_SRCS}; do \ 98347Srgrimes cd ${.CURDIR}/../$$i; \ 99355Srgrimes ${MAKE} cleandir obj depend all; \ 100347Srgrimes done 101347Srgrimes 102147Srgrimesdistribution: distrib-dirs 10337Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 10437Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 105147Srgrimes install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 1061014Snate install -c -o root -g wheel -m 644 crontab ${DESTDIR}/etc 107238Sroot install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log 10837Srgrimes install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 109358Srgrimes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 11037Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 11137Srgrimes MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 112347Srgrimes.if defined(CDROMDIST) 113147Srgrimes (cd ${DESTDIR}/dev; sh MAKEDEV all) 114347Srgrimes.endif 11537Srgrimes (cd root; \ 11637Srgrimes install -c -o root -g wheel -m 644 dot.cshrc \ 11737Srgrimes ${DESTDIR}/root/.cshrc; \ 11837Srgrimes install -c -o root -g wheel -m 644 dot.klogin \ 11937Srgrimes ${DESTDIR}/root/.klogin; \ 12037Srgrimes install -c -o root -g wheel -m 644 dot.login \ 12137Srgrimes ${DESTDIR}/root/.login; \ 12237Srgrimes install -c -o root -g wheel -m 644 dot.profile \ 12337Srgrimes ${DESTDIR}/root/.profile; \ 12437Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 12537Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 12637Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 12737Srgrimes cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 12837Srgrimes ${DESTDIR}/etc/mtree 12937Srgrimes cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 13037Srgrimes ${DESTDIR}/etc/namedb 13137Srgrimes install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 13237Srgrimes ${DESTDIR}/etc/dumpdates 133147Srgrimes install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 134147Srgrimes ${DESTDIR}/var/db/locate.database 13537Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 136147Srgrimes ${DESTDIR}/var/log/lpd-errs 13737Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 13837Srgrimes ${DESTDIR}/var/log/maillog 13937Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 140288Srgrimes ${DESTDIR}/var/log/lastlog 141288Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 142147Srgrimes ${DESTDIR}/var/log/messages 14337Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 144147Srgrimes ${DESTDIR}/var/log/wtmp 145147Srgrimes install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 14637Srgrimes ${DESTDIR}/var/run/utmp 14737Srgrimes (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 148147Srgrimes fstab.* ${DESTDIR}/etc) 149347Srgrimes.if defined(NOCRYPT) 150355Srgrimes ${MAKE} non-crypt 151355Srgrimes (cd ..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install) 152347Srgrimes.else 153355Srgrimes ${MAKE} crypt 154355Srgrimes (cd ..; ${MAKE} install) 155347Srgrimes.endif 156277Srgrimes (cd ../usr.sbin/sendmail/src; \ 157355Srgrimes ${MAKE} install; \ 158277Srgrimes cd ../cf/cf; \ 159355Srgrimes ${MAKE} tcpproto.cf; \ 160238Sroot install -o root -g wheel -m 644 tcpproto.cf \ 161238Sroot ${DESTDIR}/etc/sendmail.cf) 162277Srgrimes (cd ../; \ 163277Srgrimes install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) 164355Srgrimes (cd ..; ${MAKE} mdec; ) 165644Srgrimes (cd ../share/man; ${MAKE} makedb; ) 166333Srgrimes.if ${MACHINE} == "tahoe" 167333Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 168333Srgrimes ${DESTDIR}/) 169168Srgrimes.endif 170333Srgrimes.if ${MACHINE} == "vax" 171333Srgrimes (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 172333Srgrimes ${DESTDIR}/) 173333Srgrimes.endif 17437Srgrimes 17537Srgrimeshcx9-distribution: 17637Srgrimes (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 17737Srgrimes ${DESTDIR}/) 17837Srgrimes 179358Srgrimeskcopy-kernels: ../sys/i386/conf/GENERICAH ../sys/i386/conf/GENERICBT 180320Srgrimes (cd ../sys/compile; rm -rf GENERICAH GENERICBT) 181320Srgrimes (cd ../sys/i386/conf; config GENERICAH; config GENERICBT) 182355Srgrimes (cd ../sys/compile/GENERICAH; ${MAKE} depend; ${MAKE} all; \ 183320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 184320Srgrimes ${DESTDIR}/386bsd.GENERICAH) 185355Srgrimes (cd ../sys/compile/GENERICBT; ${MAKE} depend; ${MAKE} all; \ 186320Srgrimes install -c -o root -g wheel -m 755 386bsd \ 187320Srgrimes ${DESTDIR}/386bsd.GENERICBT) 188320Srgrimes 189358Srgrimeskcopy-floppy: 190568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 191568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 192568Srgrimes newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space \ 1931027Sache r${FLOPPY} ${FLOPPY_TYPE} 1941027Sache mount /dev/${FLOPPY} ${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} 2131027Sache umount /dev/${FLOPPY} 2141027Sache fsck /dev/r${FLOPPY} 2151027Sache dd if=/dev/r${FLOPPY} 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} 2251027Sache umount /dev/${FLOPPY} 2261027Sache fsck /dev/r${FLOPPY} 2271027Sache dd if=/dev/r${FLOPPY} 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: 233568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 234568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 235568Srgrimes newfs -b 4096 -c 80 -f 512 -i 10240 -m 0 -o space \ 2361027Sache r${FLOPPY} ${FLOPPY_TYPE} 2371027Sache mount /dev/${FLOPPY} ${MOUNT} 238333Srgrimes chown root.wheel ${MOUNT}/. 239333Srgrimes chmod 755 ${MOUNT}/. 240284Srgrimes (cd ${DESTDIR}/; \ 241358Srgrimes ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) 242284Srgrimes (cd ${MOUNT}/dev; \ 243284Srgrimes sh ${DESTDIR}/dev/MAKEDEV std; \ 244284Srgrimes rm -rf fd; \ 245435Srgrimes sh ${DESTDIR}/dev/MAKEDEV fd0 fd1 wd0 sd0 sd1; \ 246435Srgrimes rm -f rfd1[b-z] fd1[b-z]) 247284Srgrimes (cd ${DESTDIR}/; \ 248358Srgrimes ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}) 249284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.profile \ 250284Srgrimes ${MOUNT}/.profile 251284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst1.install \ 252284Srgrimes ${MOUNT}/install 253284Srgrimes (cd ${MOUNT}/; \ 254358Srgrimes ls ${FILESYSTEM_FILES} >/tmp/filelist; \ 255358Srgrimes ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ 256358Srgrimes find ${FILESYSTEM_TREES} >>/tmp/filelist; \ 257333Srgrimes sort -u /tmp/filelist >filelist; \ 258333Srgrimes rm /tmp/filelist) 259284Srgrimes df -ik ${MOUNT} 2601027Sache umount /dev/${FLOPPY} 2611027Sache fsck /dev/r${FLOPPY} 2621027Sache dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/filesystem-floppy \ 263358Srgrimes bs=15b count=160 264372Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesystem-floppy \ 265372Srgrimes >${RELEASEDIR}/floppies/filesystem-floppy.gz 266284Srgrimes 267358Srgrimescpio-floppy: 268568Srgrimes disklabel -w -r ${FLOPPY} ${FLOPPY_TYPE} \ 269568Srgrimes /usr/mdec/fdboot /usr/mdec/bootfd 270568Srgrimes newfs -b 4096 -c 80 -f 512 -i 65536 -m 0 -o space \ 2711027Sache r${FLOPPY} ${FLOPPY_TYPE} 2721027Sache mount /dev/${FLOPPY} ${MOUNT} 273333Srgrimes chown root.wheel ${MOUNT}/. 274333Srgrimes chmod 755 ${MOUNT}/. 275284Srgrimes (cd ${DESTDIR}/; \ 276358Srgrimes ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) 277284Srgrimes (cd ${DESTDIR}/; \ 278444Srgrimes (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ 279444Srgrimes cpio -oav | gzip -9 >${MOUNT}/inst2.cpio.gz) 280284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst2.profile \ 281284Srgrimes ${MOUNT}/.profile 282284Srgrimes install -c -o root -g wheel -m 755 etc.i386/inst2.install \ 283284Srgrimes ${MOUNT}/install 284284Srgrimes df -ik ${MOUNT} 2851027Sache umount /dev/${FLOPPY} 2861027Sache fsck /dev/r${FLOPPY} 2871027Sache dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cpio-floppy \ 288358Srgrimes bs=15b count=160 289372Srgrimes gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio-floppy \ 290372Srgrimes >${RELEASEDIR}/floppies/cpio-floppy.gz 291284Srgrimes 292372Srgrimesbin-tarball: 293372Srgrimes (cd ${DESTDIR}; \ 294538Srgrimes tar cf - . | \ 295538Srgrimes gzip --no-name -9 -c | \ 296538Srgrimes split -b 240640 - \ 297538Srgrimes ${RELEASEDIR}/tarballs/bin_tgz.) 298372Srgrimes 299538Srgrimessrcbase-tarball: 300376Srgrimes (cd ${DESTDIR}; \ 301538Srgrimes tar -cf - usr/src/[A-Z]* | \ 302538Srgrimes gzip --no-name -9 -c | \ 303538Srgrimes split -b 240640 - \ 304538Srgrimes ${RELEASEDIR}/tarballs/srcbase_tgz.) 305376Srgrimes 306538Srgrimessrcbin-tarball: 307376Srgrimes (cd ${DESTDIR}; \ 308538Srgrimes tar -cf - usr/src/bin | \ 309538Srgrimes gzip --no-name -9 -c | \ 310538Srgrimes split -b 240640 - \ 311538Srgrimes ${RELEASEDIR}/tarballs/srcbin_tgz.) 312376Srgrimes 313538Srgrimessrccontrib-tarball: 314538Srgrimes (cd ${DESTDIR}; \ 315538Srgrimes tar -cf - usr/src/contrib | \ 316538Srgrimes gzip --no-name -9 -c | \ 317538Srgrimes split -b 240640 - \ 318538Srgrimes ${RELEASEDIR}/tarballs/srccontrib_tgz.) 319538Srgrimes 320538Srgrimessrcetc-tarball: 321538Srgrimes (cd ${DESTDIR}; \ 322538Srgrimes tar -cf - usr/src/etc | \ 323538Srgrimes gzip --no-name -9 -c | \ 324538Srgrimes split -b 240640 - \ 325538Srgrimes ${RELEASEDIR}/tarballs/srcetc_tgz.) 326538Srgrimes 327538Srgrimessrcgames-tarball: 328538Srgrimes (cd ${DESTDIR}; \ 329538Srgrimes tar -cf - usr/src/games | \ 330538Srgrimes gzip --no-name -9 -c | \ 331538Srgrimes split -b 240640 - \ 332538Srgrimes ${RELEASEDIR}/tarballs/srcgames_tgz.) 333538Srgrimes 334538Srgrimessrcgnu-tarball: 335538Srgrimes (cd ${DESTDIR}; \ 336538Srgrimes tar -cf - usr/src/gnu | \ 337538Srgrimes gzip --no-name -9 -c | \ 338538Srgrimes split -b 240640 - \ 339538Srgrimes ${RELEASEDIR}/tarballs/srcgnu_tgz.) 340538Srgrimes 341538Srgrimessrcinclude-tarball: 342538Srgrimes (cd ${DESTDIR}; \ 343538Srgrimes tar -cf - usr/src/include | \ 344538Srgrimes gzip --no-name -9 -c | \ 345538Srgrimes split -b 240640 - \ 346538Srgrimes ${RELEASEDIR}/tarballs/srcinclude_tgz.) 347538Srgrimes 348538Srgrimessrclib-tarball: 349538Srgrimes (cd ${DESTDIR}; \ 350538Srgrimes tar --exclude usr/src/${CRYPT_LIB} -cf - usr/src/lib | \ 351538Srgrimes gzip --no-name -9 -c | \ 352538Srgrimes split -b 240640 - \ 353538Srgrimes ${RELEASEDIR}/tarballs/srclib_tgz.) 354538Srgrimes 355538Srgrimessrclibcrypt-tarball: 356538Srgrimes (cd ${DESTDIR}; \ 357538Srgrimes tar -cf - usr/src/${CRYPT_LIB} | \ 358538Srgrimes gzip --no-name -9 -c | \ 359538Srgrimes split -b 240640 - \ 360538Srgrimes ${RELEASEDIR}/tarballs/srclibcrypt_tgz.) 361538Srgrimes 362538Srgrimessrclibexec-tarball: 363538Srgrimes (cd ${DESTDIR}; \ 364538Srgrimes tar -cf - usr/src/libexec | \ 365538Srgrimes gzip --no-name -9 -c | \ 366538Srgrimes split -b 240640 - \ 367538Srgrimes ${RELEASEDIR}/tarballs/srclibexec_tgz.) 368538Srgrimes 369538Srgrimessrcsbin-tarball: 370538Srgrimes (cd ${DESTDIR}; \ 371538Srgrimes tar -cf - usr/src/sbin | \ 372538Srgrimes gzip --no-name -9 -c | \ 373538Srgrimes split -b 240640 - \ 374538Srgrimes ${RELEASEDIR}/tarballs/srcsbin_tgz.) 375538Srgrimes 376538Srgrimessrcshare-tarball: 377538Srgrimes (cd ${DESTDIR}; \ 378538Srgrimes tar -cf - usr/src/share | \ 379538Srgrimes gzip --no-name -9 -c | \ 380538Srgrimes split -b 240640 - \ 381538Srgrimes ${RELEASEDIR}/tarballs/srcshare_tgz.) 382538Srgrimes 383538Srgrimessrcsys-tarball: 384538Srgrimes (cd ${DESTDIR}; \ 385538Srgrimes tar -cf - usr/src/sys | \ 386538Srgrimes gzip --no-name -9 -c | \ 387538Srgrimes split -b 240640 - \ 388538Srgrimes ${RELEASEDIR}/tarballs/srcsys_tgz.) 389538Srgrimes 390538Srgrimessrcusrbin-tarball: 391538Srgrimes (cd ${DESTDIR}; \ 392538Srgrimes tar -cf - usr/src/usr.bin | \ 393538Srgrimes gzip --no-name -9 -c | \ 394538Srgrimes split -b 240640 - \ 395538Srgrimes ${RELEASEDIR}/tarballs/srcusrbin_tgz.) 396538Srgrimes 397538Srgrimessrcusrsbin-tarball: 398538Srgrimes (cd ${DESTDIR}; \ 399538Srgrimes tar -cf - usr/src/usr.sbin | \ 400538Srgrimes gzip --no-name -9 -c | \ 401538Srgrimes split -b 240640 - \ 402538Srgrimes ${RELEASEDIR}/tarballs/srcusrsbin_tgz.) 403538Srgrimes 404538Srgrimessrc-tarball: srcbase-tarball srcbin-tarball srccontrib-tarball srcetc-tarball \ 405538Srgrimes srcgames-tarball srcgnu-tarball srcinclude-tarball srclib-tarball \ 406538Srgrimes srclibcrypt-tarball srclibexec-tarball srcsbin-tarball \ 407538Srgrimes srcshare-tarball srcsys-tarball srcusrbin-tarball \ 408538Srgrimes srcusrsbin-tarball 409538Srgrimes 410372Srgrimesdes-tarball: 411372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 412372Srgrimes mkdir ${RELEASEDIR}/tmpdes 413372Srgrimes for i in ${CRYPT_DIRS}; do \ 414372Srgrimes cd ${RELEASEDIR}/tmpdes; \ 415372Srgrimes mkdir $$i; \ 416372Srgrimes chown ${BINOWN}.${GRPOWN} $$i; \ 417372Srgrimes chmod 755 $$i; \ 418372Srgrimes done 419372Srgrimes # This is ugly, it force installs a /usr/lib/libcrypt.a so 420372Srgrimes # that the other makes will be built with des. 421372Srgrimes # 422372Srgrimes (cd ${.CURDIR}/../${CRYPT_LIB}; \ 423372Srgrimes unset NOCRYPT; \ 424372Srgrimes DESTDIR=; export DESTDIR; \ 425372Srgrimes ${MAKE} cleandir obj depend all install; \ 426372Srgrimes NOMAN=noman; export NOMAN; \ 427372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 428372Srgrimes ${MAKE} cleandir obj depend all install) 429372Srgrimes for i in ${CRYPT_SRCS}; do \ 430372Srgrimes unset NOCRYPT; \ 431372Srgrimes DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 432372Srgrimes NOMAN=noman; export NOMAN; \ 433372Srgrimes cd ${.CURDIR}/../$$i; \ 434372Srgrimes ${MAKE} cleandir obj depend all install; \ 435372Srgrimes done 436372Srgrimes (cd ${RELEASEDIR}/tmpdes; \ 437538Srgrimes tar cf - . | \ 438538Srgrimes gzip --no-name -9 -c | \ 439372Srgrimes split -b 240640 - \ 440436Srgrimes ${RELEASEDIR}/tarballs/des_tgz.) 441372Srgrimes rm -rf ${RELEASEDIR}/tmpdes 442372Srgrimes 443147Srgrimesdistrib-dirs: 444238Sroot mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ 445147Srgrimes mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var 446147Srgrimes mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr 447372Srgrimes.if defined(CDROMDIST) 448372Srgrimes mtree -u -f mtree/BSD.local.dist -p ${DESTDIR}/usr/local 449372Srgrimes.endif 450410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 451147Srgrimes 452372Srgrimesfloppies: kcopy-ah-floppy kcopy-bt-floppy filesystem-floppy \ 453372Srgrimes cpio-floppy 454372Srgrimes 455376Srgrimesrelease: release-dirs distribution kcopy-kernels floppies \ 456376Srgrimes bin-tarball des-tarball 457372Srgrimes 458372Srgrimesrelease-dirs: 459994Srgrimes rm -rf ${RELEASEDIR}/filesys 460994Srgrimes mkdir ${RELEASEDIR}/filesys 461994Srgrimes chown root.wheel ${RELEASEDIR}/filesys 462994Srgrimes chmod 755 ${RELEASEDIR}/filesys 463372Srgrimes rm -rf ${RELEASEDIR}/tarballs 464372Srgrimes mkdir ${RELEASEDIR}/tarballs 465372Srgrimes chown root.wheel ${RELEASEDIR}/tarballs 466372Srgrimes chmod 755 ${RELEASEDIR}/tarballs 467372Srgrimes rm -rf ${RELEASEDIR}/floppies 468372Srgrimes mkdir ${RELEASEDIR}/floppies 469372Srgrimes chown root.wheel ${RELEASEDIR}/floppies 470372Srgrimes chmod 755 ${RELEASEDIR}/floppies 471372Srgrimes 47237Srgrimes.include <bsd.prog.mk> 473