Makefile revision 7298
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $Id: Makefile,v 1.110 1995/03/24 00:15:15 phk Exp $ 3 4# disktab may be wrong -- hcx9 is a tahoe, but gets its own. 5# -rw-r--r-- 6BINOWN= root 7BINGRP= wheel 8BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ 9 ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \ 10 inetd.conf login.access motd netstart \ 11 networks phones printcap profile protocols rc rc.local rc.maint \ 12 rc.serial remote security services sysconfig shells \ 13 syslog.conf ttys etc.${MACHINE}/disktab rpc make.conf \ 14 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 15 ${.CURDIR}/../usr.bin/mail/misc/mail.rc 16 17# -rw-rw-rw- 18BIN2= motd 19 20# -rwxr-xr-x root.wheel, for the new cron root.wheel 21BIN3= daily weekly monthly 22 23CLEANFILES+= *.c *.o *.lo 24CLEANFILES+= filesystem filesystem.cache filesystem.mk 25CLEANFILES+= kcopy kcopy.cache kcopy.mk 26 27MAKEDEVS= (cd ${MOUNT}/dev; \ 28 sh ${DESTDIR}/dev/MAKEDEV std; \ 29 rm -rf fd; \ 30 sh ${DESTDIR}/dev/MAKEDEV fd0 fd1; \ 31 rm -rf fd0?* rfd0?* fd1?* rfd1?*; \ 32 sh ${DESTDIR}/dev/MAKEDEV wd0 wd1 sd0 sd1 cd0 mcd0 mcd1; \ 33 rm -rf *wd[01][ijklm] rmcd*) 34 35NEWFS= newfs -b 4096 -c 80 -f 512 -m 0 -o space -u 0 -t 0 36ZIPNSPLIT= gzip --no-name -9 -c | split -b 240640 - 37 38MTREE= BSD.local.dist BSD.root.dist BSD.usr.dist BSD.var.dist 39NAMEDB= PROTO.localhost.rev named.boot named.root make-localhost 40PPPCNF= ppp.conf.filter.sample ppp.conf.iij ppp.conf.sample \ 41 ppp.linkup.sample ppp.secret.sample 42PCS= pcs750.bin 43WCS1= wcs fppwcs poc poc1 poc2 fppoc 44WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 45 46# Special top level files for FreeBSD 47COPYRIGHT= COPYRIGHT 48FREEBSD= 49FREEBSD+= ${COPYRIGHT} 50# 51# Floppy drive name, mount point, type and parameters for building Floppies 52FLOPPY?= fd0 53MOUNT?= /mnt 54FLOPPY_TYPE?= fd1440 55FLOPPY_BS?= 18b 56FLOPPY_TRACKS?= 160 57# 58MDEC= usr/mdec/bootfd usr/mdec/fdboot 59MDEC+= usr/mdec/bootsd usr/mdec/sdboot 60MDEC+= usr/mdec/bootwd usr/mdec/wdboot 61# 62KC_DIRS= bin dev mnt sbin etc 63KC_FILES= ${COPYRIGHT} 64KC_LINKS= bin/[ bin/cp bin/echo bin/sh bin/test 65KC_LINKS+= sbin/fsck sbin/halt sbin/init 66KC_LINKS+= sbin/mount sbin/mount_cd9660 67KC_LINKS+= sbin/umount 68# 69CD_DIRS= etc usr 70# 71FILESYSTEM_DIRS= bin dev etc mnt proc sbin usr usr/bin usr/mdec usr/sbin 72FILESYSTEM_TREES= dev 73FILESYSTEM_FILES= ${COPYRIGHT} 74FILESYSTEM_FILES+= dev/MAKEDEV 75FILESYSTEM_FILES+= etc/group 76FILESYSTEM_FILES+= etc/master.passwd etc/passwd etc/pwd.db 77FILESYSTEM_FILES+= ${MDEC} 78FILESYSTEM_LINKS= bin/[ bin/expr bin/ls bin/mkdir bin/rm 79FILESYSTEM_LINKS+= bin/sh bin/sync bin/test 80FILESYSTEM_LINKS+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 81FILESYSTEM_LINKS+= sbin/mount 82FILESYSTEM_LINKS+= sbin/newfs 83FILESYSTEM_LINKS+= sbin/umount 84FILESYSTEM_LINKS+= usr/bin/cpio 85FILESYSTEM_LINKS+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip usr/bin/zcat 86FILESYSTEM_LINKS+= usr/sbin/bad144 87FILESYSTEM_CPIO= .profile 88FILESYSTEM_CPIO+= root/.profile 89FILESYSTEM_CPIO+= bin/[ 90FILESYSTEM_CPIO+= bin/chmod bin/cat bin/cp bin/df bin/expr bin/ls 91FILESYSTEM_CPIO+= bin/ln bin/mkdir bin/mv bin/rm bin/sync 92FILESYSTEM_CPIO+= bin/test 93FILESYSTEM_CPIO+= etc/spwd.db 94FILESYSTEM_CPIO+= sbin/disklabel sbin/fdisk sbin/halt sbin/init 95FILESYSTEM_CPIO+= sbin/mount 96FILESYSTEM_CPIO+= sbin/newfs 97FILESYSTEM_CPIO+= sbin/umount 98FILESYSTEM_CPIO_DIRS= root 99 100CPIO_FILES= ${COPYRIGHT} 101CPIO_CPIO= bin/dd bin/ps bin/pwd bin/stty 102CPIO_CPIO+= etc/protocols etc/remote etc/services 103CPIO_CPIO+= etc/termcap 104CPIO_CPIO+= sbin/dmesg 105CPIO_CPIO+= sbin/ifconfig sbin/fsck sbin/mknod sbin/mount_cd9660 106CPIO_CPIO+= sbin/mount_procfs 107CPIO_CPIO+= sbin/reboot sbin/route sbin/slattach 108CPIO_CPIO+= usr/bin/awk usr/bin/chgrp usr/bin/cpio usr/bin/ex usr/bin/ftp 109CPIO_CPIO+= usr/bin/gunzip usr/bin/gzcat usr/bin/gzip 110CPIO_CPIO+= usr/bin/more usr/bin/tar usr/bin/tip 111CPIO_CPIO+= usr/bin/vi usr/bin/view usr/bin/zcat 112CPIO_CPIO+= usr/lib/libc.so.* 113CPIO_CPIO+= usr/lib/libcurses.so.* 114CPIO_CPIO+= usr/lib/libgcc.so.* 115CPIO_CPIO+= usr/lib/libm.so.* 116CPIO_CPIO+= usr/lib/libtermcap.so.* 117CPIO_CPIO+= usr/lib/libutil.so.* 118CPIO_CPIO+= usr/libexec/ld.so 119CPIO_CPIO+= usr/sbin/bad144 usr/sbin/chown 120CPIO_CPIO+= usr/share/misc/termcap 121CPIO_CPIO_DIRS= tmp usr/lib usr/libexec usr/share usr/share/misc 122CPIO_CPIO_DIRS+= var var/tmp var/run var/spool var/spool/lock 123 124SCRYPT_LIB= lib/libcrypt 125DESCRYPT_LIB= secure/lib/libcrypt 126CRYPT_SRCS= bin/ed bin/rcp 127CRYPT_SRCS+= sbin/init 128.if !defined(NOCRYPT) 129CRYPT_SRCS+= secure 130.endif 131CRYPT_DIRS= bin sbin usr usr/bin usr/lib 132 133LATIN1LINKS = \ 134 da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES fi_FI \ 135 fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE nl_NL no_NO \ 136 pt_PT sv_SE 137 138all depend etc install lint: 139 140scrypt: 141 rm -f ${LIBCRYPT}; 142 (cd ${.CURDIR}/../${SCRYPT_LIB}; \ 143 ${MAKE} cleandir obj depend all install) 144 for i in ${CRYPT_SRCS}; do \ 145 cd ${.CURDIR}/../$$i; \ 146 ${MAKE} cleandir obj depend all; \ 147 done 148 149descrypt: 150 rm -f ${LIBCRYPT}; 151 (cd ${.CURDIR}/../${DESCRYPT_LIB}; \ 152 ${MAKE} cleandir obj depend all install) 153 for i in ${CRYPT_SRCS}; do \ 154 cd ${.CURDIR}/../$$i; \ 155 ${MAKE} cleandir obj depend all; \ 156 done 157 158distribute: 159 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 160 161distribution: 162 (cd ${.CURDIR}; \ 163 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 164 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc; \ 165 install -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN3} ${DESTDIR}/etc; \ 166 install -c -o ${BINOWN} -g ${BINGRP} -m 644 crontab ${DESTDIR}/etc; \ 167 install -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 168 ${DESTDIR}/var/cron/log; \ 169 install -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 170 master.passwd ${DESTDIR}/etc; \ 171 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 172 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 173 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev ) 174 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 175 (cd ${.CURDIR}/root; \ 176 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 177 ${DESTDIR}/root/.cshrc; \ 178 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 179 ${DESTDIR}/root/.klogin; \ 180 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 181 ${DESTDIR}/root/.login; \ 182 install -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 183 ${DESTDIR}/root/.profile; \ 184 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 185 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 186 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 187 cd ${.CURDIR}/mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 188 ${MTREE} ${DESTDIR}/etc/mtree 189 cd ${.CURDIR}/namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 190 ${NAMEDB} ${DESTDIR}/etc/namedb 191 cd ${.CURDIR}/ppp; install -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 192 ${PPPCNF} ${DESTDIR}/etc/ppp 193 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 194 ${DESTDIR}/etc/dumpdates 195 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 196 ${DESTDIR}/var/db/locate.database 197 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 198 ${DESTDIR}/var/log/lpd-errs 199 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 200 ${DESTDIR}/var/log/maillog 201 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 202 ${DESTDIR}/var/log/lastlog 203 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 204 ${DESTDIR}/var/log/messages 205 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 206 ${DESTDIR}/var/log/wtmp 207 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 208 ${DESTDIR}/var/run/utmp 209 install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 210 ${DESTDIR}/var/crash 211 (cd ${.CURDIR}/etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} \ 212 -m 444 fstab.* ${DESTDIR}/etc) 213 (cd ${.CURDIR}/../usr.sbin/sendmail/src; \ 214 ${MAKE} obj; \ 215 ${MAKE} all; \ 216 ${MAKE} install; \ 217 cd ../cf/cf; \ 218 ${MAKE} obj; \ 219 ${MAKE} freefall.cf; \ 220 install -o ${BINOWN} -g ${BINGRP} -m 644 obj/freefall.cf \ 221 ${DESTDIR}/etc/sendmail.cf) 222 (cd ${.CURDIR}/..; \ 223 install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} ${DESTDIR}/) 224 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 225 226crunch: 227 crunchgen ${.CURDIR}/../usr.sbin/crunch/examples/kcopy.conf 228 ${MAKE} -f kcopy.mk objs exe 229 crunchgen ${.CURDIR}/../usr.sbin/crunch/examples/filesystem.conf 230 ${MAKE} -f filesystem.mk objs exe 231 232extract: 233 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 234 ${.CURDIR}/etc.i386/EXTRACT_bin.sh \ 235 ${RELEASEDIR}/tarballs/bin/EXTRACT.sh 236 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 237 ${.CURDIR}/etc.i386/EXTRACT_src.sh \ 238 ${RELEASEDIR}/tarballs/bin/EXTRACT.sh 239 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 240 ${.CURDIR}/etc.i386/EXTRACT_secr.sh \ 241 ${RELEASEDIR}/tarballs/bin/EXTRACT.sh 242 243hcx9-distribution: 244 (cd ${.CURDIR}/etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} \ 245 -m 444 ${WCS2} ${DESTDIR}/) 246 247kcopy-kernels: ${.CURDIR}/../sys/i386/conf/GENERIC 248 (cd ${.CURDIR}/../sys/compile; rm -rf GENERIC) 249 (cd ${.CURDIR}/../sys/i386/conf; config GENERIC) 250 (cd ${.CURDIR}/../sys/compile/GENERIC; ${MAKE} depend; ${MAKE} all; \ 251 install -c -o ${BINOWN} -g ${BINGRP} -m 755 kernel \ 252 ${DESTDIR}/kernel.GENERIC) 253 254kcopy-floppy: 255 echo y | fdformat ${FLOPPY} 256 disklabel -w -r -B -b ${DESTDIR}/usr/mdec/fdboot \ 257 -s ${DESTDIR}/usr/mdec/bootfd ${FLOPPY} ${FLOPPY_TYPE} 258 ${NEWFS} -i 8192 r${FLOPPY} ${FLOPPY_TYPE} 259 mount /dev/${FLOPPY} ${MOUNT} 260 chown ${BINOWN}.${BINGRP} ${MOUNT}/. 261 chmod 755 ${MOUNT}/. 262 (cd ${DESTDIR}/; \ 263 ls -d ${KC_DIRS} | cpio -pdamuv ${MOUNT}) 264 ${MAKEDEVS} 265 (cd ${DESTDIR}/; \ 266 ls ${KC_FILES} | cpio -pdamuv ${MOUNT}) 267 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 268 ${.CURDIR}/etc.i386/kc.profile ${MOUNT}/etc/rc 269 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 270 kcopy ${MOUNT}/bin/kcopy 271 (cd ${MOUNT}/; \ 272 for i in ${KC_LINKS}; do \ 273 ln bin/kcopy $$i; \ 274 done) 275 276kcopy.flp: 277 (cd ${.CURDIR}; ${MAKE} kcopy-floppy) 278 (cd ${.CURDIR}/../sys/compile/GENERIC; \ 279 install -c -o ${BINOWN} -g ${BINGRP} -m 755 kernel ${MOUNT}/) 280 df -ik ${MOUNT} 281 # XXX umount is returning 1 for some reason :-( 282 -umount /dev/${FLOPPY} 283 fsck /dev/r${FLOPPY} 284 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/kcopy.flp \ 285 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 286 gzip --no-name -9 -c ${RELEASEDIR}/floppies/kcopy.flp \ 287 >${RELEASEDIR}/floppies/kcopy.flp.gz & 288 289cdins-floppy: 290 (cd ${.CURDIR}; ${MAKE} kcopy-floppy) 291 (cd ${DESTDIR}/; \ 292 ls -d ${CD_DIRS} | cpio -pdamuv ${MOUNT}) 293 (cd ${MOUNT}/usr; \ 294 ln -s /cdrom/filesys/usr/libexec libexec; \ 295 ln -s /cdrom/filesys/usr/lib lib) 296 mkdir ${MOUNT}/cdrom 297 chown ${BINOWN}.${BINGRP} ${MOUNT}/cdrom 298 chmod 755 ${MOUNT}/cdrom 299 #install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 300 # ${.CURDIR}/etc.i386/cdinst1.profile ${MOUNT}/.profile 301 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 302 ${.CURDIR}/etc.i386/cdinst1.install ${MOUNT}/install 303 ln ${MOUNT}/install ${MOUNT}/etc/rc 304 305cdins.flp: 306 (cd ${.CURDIR}; ${MAKE} kcopy-floppy) 307 (cd ${.CURDIR}/../sys/compile/GENERIC; \ 308 install -c -o ${BINOWN} -g ${BINGRP} -m 755 kernel ${MOUNT}/) 309 df -ik ${MOUNT} 310 # XXX umount is returning 1 for some reason :-( 311 -umount /dev/${FLOPPY} 312 fsck /dev/r${FLOPPY} 313 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cdins.flp \ 314 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 315 gzip --no-name -9 -c ${RELEASEDIR}/floppies/cdins.flp \ 316 >${RELEASEDIR}/floppies/cdins.flp.gz & 317 318filesyst.flp: 319 echo y | fdformat ${FLOPPY} 320 disklabel -w -r -B -b ${DESTDIR}/usr/mdec/fdboot \ 321 -s ${DESTDIR}/usr/mdec/bootfd ${FLOPPY} ${FLOPPY_TYPE} 322 ${NEWFS} -i 10240 r${FLOPPY} ${FLOPPY_TYPE} 323 mount /dev/${FLOPPY} ${MOUNT} 324 chown ${BINOWN}.${BINGRP} ${MOUNT}/. 325 chmod 755 ${MOUNT}/. 326 (cd ${DESTDIR}/; \ 327 ls -d ${FILESYSTEM_DIRS} | cpio -pdamuv ${MOUNT}) 328 ${MAKEDEVS} 329 (cd ${DESTDIR}/; \ 330 ls ${FILESYSTEM_FILES} | cpio -pdamuv ${MOUNT}; \ 331 (find ${FILESYSTEM_CPIO}; ls -d ${FILESYSTEM_CPIO_DIRS}) | \ 332 cpio -H newc --block-size=16 -oav | \ 333 gzip -9 >${MOUNT}/inst1.cpio.gz) 334 #install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 335 # ${.CURDIR}/etc.i386/inst1.profile ${MOUNT}/.profile 336 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 337 ${.CURDIR}/etc.i386/inst1.install ${MOUNT}/install 338 ln ${MOUNT}/install ${MOUNT}/etc/rc 339 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 340 filesystem ${MOUNT}/bin/filesystem 341 (cd ${MOUNT}/; \ 342 for i in ${FILESYSTEM_LINKS}; do \ 343 ln bin/filesystem $$i; \ 344 done) 345 (cd ${MOUNT}/; \ 346 ls ${FILESYSTEM_FILES} >/tmp/filelist; \ 347 ls ${FILESYSTEM_LINKS} >>/tmp/filelist; \ 348 ls -d ${FILESYSTEM_DIRS} >>/tmp/filelist; \ 349 find ${FILESYSTEM_TREES} >>/tmp/filelist; \ 350 sort -u -r /tmp/filelist >filelist; \ 351 rm /tmp/filelist) 352 df -ik ${MOUNT} 353 # XXX umount is returning 1 for some reason :-( 354 -umount /dev/${FLOPPY} 355 fsck /dev/r${FLOPPY} 356 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/filesyst.flp \ 357 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 358 gzip --no-name -9 -c ${RELEASEDIR}/floppies/filesyst.flp \ 359 >${RELEASEDIR}/floppies/filesyst.flp.gz & 360 361cpio.flp: 362 echo y | fdformat ${FLOPPY} 363 disklabel -w -r -B -b ${DESTDIR}/usr/mdec/fdboot \ 364 -s ${DESTDIR}/usr/mdec/bootfd ${FLOPPY} ${FLOPPY_TYPE} 365 ${NEWFS} -i 65536 r${FLOPPY} ${FLOPPY_TYPE} 366 mount /dev/${FLOPPY} ${MOUNT} 367 chown ${BINOWN}.${BINGRP} ${MOUNT}/. 368 chmod 755 ${MOUNT}/. 369 (cd ${DESTDIR}/; \ 370 ls ${CPIO_FILES} | cpio -pdamuv ${MOUNT}) 371 # 372 # XXX This ugliness is because the default termcap file is simply too 373 # big and we don't need such a hugh one for the initial installation, 374 # yet we want the symlink in /etc to point to the right place so we 375 # need to install the smaller one in the same location. 376 # 377 mv ${DESTDIR}/usr/share/misc/termcap ${DESTDIR}/usr/share/misc/otermcap 378 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 379 ${.CURDIR}/termcap.small ${DESTDIR}/usr/share/misc/termcap 380 (cd ${DESTDIR}/; \ 381 (find ${CPIO_CPIO}; ls -d ${CPIO_CPIO_DIRS}) | \ 382 cpio -H newc --block-size=16 -oav | \ 383 gzip -9 >${MOUNT}/inst2.cpio.gz) 384 # XXX cpio is done, put everything back in shape for the bindist. 385 mv ${DESTDIR}/usr/share/misc/otermcap ${DESTDIR}/usr/share/misc/termcap 386 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 387 ${.CURDIR}/etc.i386/cpio.rc ${MOUNT}/rc 388 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 389 ${.CURDIR}/etc.i386/cpio.install ${MOUNT}/install 390 install -c -o ${BINOWN} -g ${BINGRP} -m 755 \ 391 ${.CURDIR}/etc.i386/cpio.magic ${MOUNT}/magic 392 df -ik ${MOUNT} 393 # XXX umount is returning 1 for some reason :-( 394 -umount /dev/${FLOPPY} 395 fsck /dev/r${FLOPPY} 396 dd if=/dev/r${FLOPPY} of=${RELEASEDIR}/floppies/cpio.flp \ 397 bs=${FLOPPY_BS} count=${FLOPPY_TRACKS} 398 gzip --no-name -9 -c ${RELEASEDIR}/floppies/cpio.flp \ 399 >${RELEASEDIR}/floppies/cpio.flp.gz & 400 401bin-tarball: 402 (cd ${DESTDIR}; \ 403 mkdir -p ${RELEASEDIR}/tarballs/bin; \ 404 tar cf - . | \ 405 ${ZIPNSPLIT} ${RELEASEDIR}/tarballs/bin/bin.) 406 407des-tarball: 408 rm -rf ${RELEASEDIR}/tmpdes 409 mkdir ${RELEASEDIR}/tmpdes 410 for i in ${CRYPT_DIRS}; do \ 411 cd ${RELEASEDIR}/tmpdes; \ 412 mkdir $$i; \ 413 chown ${BINOWN}.${GRPOWN} $$i; \ 414 chmod 755 $$i; \ 415 done 416 # This is ugly, it force installs a /usr/lib/libcrypt.a so 417 # that the other makes will be built with des. 418 # 419 (set -x ; cd ${.CURDIR}/../${DESCRYPT_LIB}; \ 420 NOCRYPT=; \ 421 unset NOCRYPT; \ 422 DESTDIR=; export DESTDIR; \ 423 ${MAKE} cleandir obj depend all install; \ 424 NOMAN=noman; export NOMAN; \ 425 DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 426 ${MAKE} cleandir obj depend all install) 427 for i in ${CRYPT_SRCS}; do \ 428 NOCRYPT=; \ 429 unset NOCRYPT; \ 430 DESTDIR=${RELEASEDIR}/tmpdes; export DESTDIR; \ 431 NOMAN=noman; export NOMAN; \ 432 cd ${.CURDIR}/../$$i; \ 433 ${MAKE} cleandir obj depend all install; \ 434 done 435 (cd ${RELEASEDIR}/tmpdes; \ 436 tar cf - . | \ 437 ${ZIPNSPLIT} ${RELEASEDIR}/tarballs/secure/des_tgz.) 438 rm -rf ${RELEASEDIR}/tmpdes 439 440distrib-dirs: 441 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 442 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 443 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 444 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 445 -p ${DESTDIR}/usr/include 446.if defined(MAKE_LOCAL) 447 mtree -deU -f ${.CURDIR}/mtree/BSD.local.dist -p ${DESTDIR}/usr/local 448.endif 449 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 450 cd ${DESTDIR}/usr/share/locale; \ 451 for l in ${LATIN1LINKS} ; do \ 452 ln -sf lt_LN.ISO8859-1 $$l.ISO8859-1; \ 453 done 454 455floppies: kcopy.flp filesyst.flp cpio.flp cdins.flp 456 457release: release-dirs distribution crunch extract kcopy-kernels \ 458 floppies bin-tarball des-tarball clean 459 460release-dirs: 461 chflags -R noschg ${RELEASEDIR}/ 462 rm -rf ${RELEASEDIR}/* 463 mtree -d -U -f ${.CURDIR}/mtree/BSD.release.dist -p ${RELEASEDIR} 464 465.include <bsd.prog.mk> 466