Makefile.inc revision 1.6
1# $NetBSD: Makefile.inc,v 1.6 2001/03/12 14:10:04 wiz Exp $ 2# 3# etc.sparc64/Makefile.inc -- sparc64-specific etc Makefile targets 4# 5 6TOP= $(.CURDIR)/.. 7 8# Set this for any kernels beyond GENERIC you want to include 9# in the distribution. 10#EXTRA_KERNELS+= POWEROFSEVEN 11# XXX; no ramdisk install yet. 12#BUILD_KERNELS+= INSTALL 13 14 15# Add sparc64 installation directories 16MD_INSTALLATION_DIRS= \ 17 installation/xminiroot installation/netboot installation/misc 18INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS) 19 20snap_pre_md: 21.ifndef UPDATE 22 cd $(TOP)/distrib && ${MAKE} clean 23.endif 24 25# 26# Install miniroot images and auxiliary scripts to the release tree 27# 28snap_md_post: 29.if exists($(XSRCDIR)/xc/Imakefile) 30 # build X11 31.ifndef XSRC_DONE 32 (cd $(XSRCDIR); $(MAKE) release) 33.endif 34.endif 35 36 # make boot/miniroot images 37 (cd $(TOP)/distrib; ${MAKE}) 38 39 # transfer images to release hierarchy 40.for dir in notes sparc64/xminiroot 41 (cd $(TOP)/distrib/$(dir); ${MAKE} release) 42.endfor 43 44 # install boot image and installation scripts in netboot directory 45.for f in ofwboot.net 46 cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/netboot 47.endfor 48.for f in ofwboot bootblk installboot 49 cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/misc 50.endfor 51 52 # compute checksums 53.for dir in ${MD_INSTALLATION_DIRS} 54 sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*' 55.endfor 56