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