1 # $NetBSD: Makefile.inc,v 1.14 1999/10/18 20:39:01 pk Exp $ 2 # 3 # etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets 4 # 5 6 TOP= $(.CURDIR)/.. 7 .include "$(TOP)/distrib/sparc/Makefile.inc" 8 9 # Set this for any kernels beyond GENERIC you want to include 10 # in the distribution. 11 EXTRA_KERNELS+= GENERIC_SCSI3 12 BUILD_KERNELS+= INSTALL 13 14 # Add sparc installation directories 15 MD_INSTALLATION_DIRS= \ 16 installation/miniroot installation/netboot installation/bootfs 17 INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS) 18 19 snap_pre_md: 20 .ifndef UPDATE 21 cd $(TOP)/distrib && ${MAKE} clean 22 .endif 23 24 # 25 # Install miniroot images and auxiliary scripts to the release tree 26 # 27 snap_md_post: 28 # make boot/miniroot images 29 (cd $(TOP)/distrib; ${MAKE}) 30 31 # transfer images to release hierarchy 32 .for dir in notes miniroot sparc/bootfs sparc/ramdisk 33 (cd $(TOP)/distrib/$(dir); ${MAKE} release) 34 .endfor 35 36 # install boot image and installation scripts in netboot directory 37 cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot 38 .for f in install.sh upgrade.sh install.sub ../sparc/install.md 39 cp -p $(TOP)/distrib/miniroot/$f $(RELEASEDIR)/installation/netboot 40 .endfor 41 42 # compute checksums 43 .for dir in ${MD_INSTALLATION_DIRS} 44 sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*' 45 .endfor 46