2001-07-21 09:58:28 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.7 2001/07/21 05:58:28 eeh Exp $
|
1999-01-24 00:03:22 +03:00
|
|
|
#
|
2001-03-12 17:10:03 +03:00
|
|
|
# etc.sparc64/Makefile.inc -- sparc64-specific etc Makefile targets
|
1999-01-24 00:03:22 +03:00
|
|
|
#
|
|
|
|
|
2000-08-20 18:48:32 +04:00
|
|
|
TOP= $(.CURDIR)/..
|
|
|
|
|
1999-02-05 06:01:49 +03:00
|
|
|
# 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
|
2001-07-21 09:58:28 +04:00
|
|
|
BUILD_KERNELS+= INSTALL
|
2000-08-20 18:48:32 +04:00
|
|
|
|
|
|
|
|
|
|
|
# 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
|