NetBSD/etc/etc.sparc64/Makefile.inc

56 lines
1.3 KiB
PHP
Raw Normal View History

2001-01-07 12:31:17 +03:00
# $NetBSD: Makefile.inc,v 1.5 2001/01/07 09:31:17 mrg Exp $
1999-01-24 00:03:22 +03:00
#
# etc.sparc/Makefile.inc -- sparc-specific etc Makefile targets
#
2000-08-20 18:48:32 +04:00
TOP= $(.CURDIR)/..
# Set this for any kernels beyond GENERIC you want to include
# in the distribution.
2000-08-20 18:48:32 +04:00
#EXTRA_KERNELS+= POWEROFSEVEN
# XXX; no ramdisk install yet.
#BUILD_KERNELS+= INSTALL
# Add sparc64 installation directories
MD_INSTALLATION_DIRS= \
2001-01-07 12:31:17 +03:00
installation/xminiroot installation/netboot installation/misc
2000-08-20 18:48:32 +04:00
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:
2001-01-07 12:31:17 +03:00
.if exists($(XSRCDIR)/xc/Imakefile)
# build X11
.ifndef XSRC_DONE
(cd $(XSRCDIR); $(MAKE) release)
.endif
.endif
2000-08-20 18:48:32 +04:00
# make boot/miniroot images
(cd $(TOP)/distrib; ${MAKE})
# transfer images to release hierarchy
2001-01-07 12:31:17 +03:00
.for dir in notes sparc64/xminiroot
2000-08-20 18:48:32 +04:00
(cd $(TOP)/distrib/$(dir); ${MAKE} release)
.endfor
# install boot image and installation scripts in netboot directory
.for f in ofwboot.net
cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/netboot
.endfor
.for f in ofwboot bootblk installboot
cp -p $(DESTDIR)/usr/mdec/$f $(RELEASEDIR)/installation/misc
.endfor
# compute checksums
.for dir in ${MD_INSTALLATION_DIRS}
sh $(TOP)/distrib/sets/makesums -t ${RELEASEDIR}/${dir} '*'
.endfor