NetBSD/etc/etc.sparc/Makefile.inc

53 lines
1.5 KiB
Makefile

# $NetBSD: Makefile.inc,v 1.19 2000/10/20 14:13:12 pk Exp $
#
# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
#
TOP= $(.CURDIR)/..
# Set this for any kernels beyond GENERIC you want to include
# in the distribution.
EXTRA_KERNELS+= GENERIC_SCSI3
BUILD_KERNELS+= INSTALL
# Add sparc installation directories
MD_INSTALLATION_DIRS= \
installation/miniroot installation/netboot installation/bootfs
INSTALLATION_DIRS+=$(MD_INSTALLATION_DIRS)
snap_pre_md:
.ifndef UPDATE
cd $(TOP)/distrib && ${MAKE} clean
.endif
#
# Install miniroot images and auxiliary scripts to the release tree
#
snap_md_post:
# make boot/miniroot images
(cd $(TOP)/distrib; ${MAKE})
# transfer images to release hierarchy
.for dir in notes miniroot sparc/ramdisk sparc/bootfs
(cd $(TOP)/distrib/$(dir); ${MAKE} release)
.endfor
# install boot image and installation scripts in netboot directory
cp -p $(DESTDIR)/usr/mdec/boot.net $(RELEASEDIR)/installation/netboot
.for f in install.sh upgrade.sh install.sub ../sparc/install.md
cp -p $(TOP)/distrib/miniroot/$f $(RELEASEDIR)/installation/netboot
.endfor
# compute checksums
.for dir in ${MD_INSTALLATION_DIRS}
sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*'
.endfor
CDBOOTIMAGE!= cd ${TOP}/distrib/miniroot; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/miniroot.fs\n" | \
${MAKE} -s -f-
iso-image_md_post:
mksunbootcd ${RELEASEDIR}/installation/cdrom/netbsd-${MACHINE}.iso \
$(CDBOOTIMAGE) $(CDBOOTIMAGE) $(CDBOOTIMAGE)