1 1.26 lukem # $NetBSD: Makefile.inc,v 1.26 2002/05/02 15:09:48 lukem Exp $ 2 1.1 deraadt # 3 1.1 deraadt # etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets 4 1.1 deraadt # 5 1.1 deraadt 6 1.14 pk TOP= $(.CURDIR)/.. 7 1.14 pk 8 1.23 thorpej KERNEL_SETS= GENERIC GENERIC_SCSI3 GENERIC_SUN4U 9 1.23 thorpej 10 1.23 thorpej BUILD_KERNELS= INSTALL 11 1.14 pk 12 1.26 lukem MD_INSTALLATION_DIRS= installation/miniroot \ 13 1.26 lukem installation/netboot \ 14 1.26 lukem installation/bootfs \ 15 1.26 lukem installation/tape \ 16 1.26 lukem installation/floppy 17 1.26 lukem INSTALLATION_DIRS+= ${MD_INSTALLATION_DIRS} 18 1.14 pk 19 1.14 pk snap_pre_md: 20 1.14 pk .ifndef UPDATE 21 1.14 pk cd $(TOP)/distrib && ${MAKE} clean 22 1.14 pk .endif 23 1.14 pk 24 1.14 pk # 25 1.14 pk # Install miniroot images and auxiliary scripts to the release tree 26 1.14 pk # 27 1.14 pk snap_md_post: 28 1.14 pk # make boot/miniroot images 29 1.14 pk (cd $(TOP)/distrib; ${MAKE}) 30 1.14 pk 31 1.14 pk # transfer images to release hierarchy 32 1.21 pk .for dir in notes miniroot sparc/bootfs sparc/instfs 33 1.14 pk (cd $(TOP)/distrib/$(dir); ${MAKE} release) 34 1.14 pk .endfor 35 1.14 pk 36 1.21 pk # install boot image in netboot directory 37 1.14 pk cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot 38 1.21 pk 39 1.21 pk # install links to boot and installation utilities for various media 40 1.21 pk rm -f ${RELEASEDIR}/installation/tape/tapefile1.gz 41 1.21 pk rm -f ${RELEASEDIR}/installation/tape/tapefile2 42 1.21 pk rm -f ${RELEASEDIR}/installation/floppy/disk1.gz 43 1.21 pk rm -f ${RELEASEDIR}/installation/floppy/disk2 44 1.21 pk rm -f ${RELEASEDIR}/installation/netboot/rootfs.tgz 45 1.21 pk ln -s ../bootfs/netbsd.ram.aout.gz \ 46 1.21 pk ${RELEASEDIR}/installation/tape/tapefile1.gz 47 1.21 pk ln -s ../bootfs/instfs.tgz \ 48 1.21 pk ${RELEASEDIR}/installation/tape/tapefile2 49 1.21 pk ln -s ../bootfs/boot.fs.gz \ 50 1.21 pk ${RELEASEDIR}/installation/floppy/disk1.gz 51 1.21 pk ln -s ../bootfs/instfs.tgz \ 52 1.21 pk ${RELEASEDIR}/installation/floppy/disk2 53 1.21 pk ln -s ../bootfs/instfs.tgz \ 54 1.21 pk ${RELEASEDIR}/installation/netboot/rootfs.tgz 55 1.14 pk 56 1.14 pk # compute checksums 57 1.14 pk .for dir in ${MD_INSTALLATION_DIRS} 58 1.25 bjh21 ${MAKESUMS} -t ${RELEASEDIR}/${dir} '*' 59 1.14 pk .endfor 60 1.19 pk 61 1.24 thorpej CDBOOTIMAGEDIR!= cd ${TOP}/distrib/sparc/bootfs && ${PRINTOBJDIR} 62 1.24 thorpej CDBOOTIMAGE= ${CDBOOTIMAGEDIR}/boot.fs 63 1.19 pk 64 1.19 pk iso-image_md_post: 65 1.19 pk mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \ 66 1.19 pk $(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE) 67