Home | History | Annotate | Line # | Download | only in etc.sparc
Makefile.inc revision 1.15.4.2
      1  1.15.4.2       tv #	$NetBSD: Makefile.inc,v 1.15.4.2 2000/10/22 19:03:07 tv 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.13      cjs # Set this for any kernels beyond GENERIC you want to include
      9      1.13      cjs # in the distribution.
     10      1.13      cjs EXTRA_KERNELS+= GENERIC_SCSI3
     11      1.14       pk BUILD_KERNELS+= INSTALL
     12      1.14       pk 
     13      1.14       pk # Add sparc installation directories
     14      1.14       pk MD_INSTALLATION_DIRS= \
     15      1.14       pk 	installation/miniroot installation/netboot installation/bootfs
     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.15.4.2       tv .for dir in notes miniroot sparc/ramdisk 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.14       pk 	# install boot image and installation scripts in netboot directory
     36      1.14       pk 	cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
     37      1.14       pk .for f in install.sh upgrade.sh install.sub ../sparc/install.md
     38      1.14       pk 	cp -p $(TOP)/distrib/miniroot/$f $(RELEASEDIR)/installation/netboot
     39      1.14       pk .endfor
     40      1.14       pk 
     41      1.14       pk 	# compute checksums
     42      1.14       pk .for dir in ${MD_INSTALLATION_DIRS}
     43      1.14       pk 	sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*'
     44      1.14       pk .endfor
     45  1.15.4.1       tv 
     46  1.15.4.1       tv CDBOOTIMAGE!=	cd ${TOP}/distrib/miniroot; \
     47  1.15.4.1       tv 		printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \
     48  1.15.4.1       tv 		${MAKE} -s -f-
     49  1.15.4.1       tv 
     50  1.15.4.1       tv iso-image_md_post:
     51  1.15.4.1       tv 	mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
     52  1.15.4.1       tv 		$(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE)
     53