197d92980SPeter Wemm# $FreeBSD$ 20202c140SRodney W. Grimes# 312ad0bb1SNathan Whitehorn# Makefile for building releases and release media. 4bd668f6fSPoul-Henning Kamp# 512ad0bb1SNathan Whitehorn# User-driven targets: 68cec99b6SGlen Barber# cdrom: Builds release CD-ROM media (disc1.iso) 75d27274aSGlen Barber# dvdrom: Builds release DVD-ROM media (dvd1.iso) 83c334738SGlen Barber# memstick: Builds memory stick image (memstick.img) 9a9da1707SGlen Barber# mini-memstick: Builds minimal memory stick image (mini-memstick.img) 1012ad0bb1SNathan Whitehorn# ftp: Sets up FTP distribution area (ftp) 114afe7cf5SGlen Barber# release: Invokes real-release, vm-release, and cloudware-release targets 124afe7cf5SGlen Barber# real-release: Build all media and FTP distribution area 134afe7cf5SGlen Barber# vm-release: Build all virtual machine image targets 144afe7cf5SGlen Barber# cloudware-release: Build all cloud hosting provider targets 152d4ff62fSGlen Barber# install: Invokes the release-install and vm-install targets 162d4ff62fSGlen Barber# release-install: Copies all release installation media into ${DESTDIR} 172d4ff62fSGlen Barber# vm-install: Copies all virtual machine images into ${DESTDIR} 18bd668f6fSPoul-Henning Kamp# 1912ad0bb1SNathan Whitehorn# Variables affecting the build process: 2012ad0bb1SNathan Whitehorn# WORLDDIR: location of src tree -- must have built world and default kernel 2112ad0bb1SNathan Whitehorn# (by default, the directory above this one) 2212ad0bb1SNathan Whitehorn# PORTSDIR: location of ports tree to distribute (default: /usr/ports) 2312ad0bb1SNathan Whitehorn# DOCDIR: location of doc tree (default: /usr/doc) 249d22cb2eSHiroki Sato# NOPKG: if set, do not distribute third-party packages 2512ad0bb1SNathan Whitehorn# NOPORTS: if set, do not distribute ports tree 2612ad0bb1SNathan Whitehorn# NOSRC: if set, do not distribute source tree 2712ad0bb1SNathan Whitehorn# NODOC: if set, do not generate release documentation 28f7f650c7SGlen Barber# WITH_DVD: if set, generate dvd1.iso 2955af5cf1SGlen Barber# WITH_COMPRESSED_IMAGES: if set, compress installation images with xz(1) 30cbc0e08aSGlen Barber# (uncompressed images are not removed) 31a68d274bSGlen Barber# WITH_VMIMAGES: if set, build virtual machine images with the release 32a9278c16SGlen Barber# WITH_COMPRESSED_VMIMAGES: if set, compress virtual machine disk images 33a9278c16SGlen Barber# with xz(1) (extremely time consuming) 342d4ff62fSGlen Barber# WITH_CLOUDWARE: if set, build cloud hosting disk images with the release 3512ad0bb1SNathan Whitehorn# TARGET/TARGET_ARCH: architecture of built release 36b03ddec9SJohn Baldwin# 37ab0e9cdcSPoul-Henning Kamp 3812ad0bb1SNathan WhitehornWORLDDIR?= ${.CURDIR}/.. 3912ad0bb1SNathan WhitehornPORTSDIR?= /usr/ports 4012ad0bb1SNathan WhitehornDOCDIR?= /usr/doc 4112ad0bb1SNathan WhitehornRELNOTES_LANG?= en_US.ISO8859-1 42fff8eb57SJohn Baldwin 43464485c8SHiroki Sato.if !defined(TARGET) || empty(TARGET) 44464485c8SHiroki SatoTARGET= ${MACHINE} 45464485c8SHiroki Sato.endif 46464485c8SHiroki Sato.if !defined(TARGET_ARCH) || empty(TARGET_ARCH) 470bd47e83SNathan Whitehorn.if ${TARGET} == ${MACHINE} 48464485c8SHiroki SatoTARGET_ARCH= ${MACHINE_ARCH} 498f1f55e9SRuslan Ermilov.else 50464485c8SHiroki SatoTARGET_ARCH= ${TARGET} 51464485c8SHiroki Sato.endif 528f1f55e9SRuslan Ermilov.endif 5312ad0bb1SNathan WhitehornIMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET} 54876acefaSHiroki SatoDISTDIR= dist 558f1f55e9SRuslan Ermilov 56de17cbccSHiroki Sato# Define OSRELEASE by using newvars.sh 57de17cbccSHiroki Sato.if !defined(OSRELEASE) || empty(OSRELEASE) 58de17cbccSHiroki Sato.for _V in TYPE BRANCH REVISION 59de17cbccSHiroki Sato${_V}!= eval $$(awk '/^${_V}=/{print}' ${.CURDIR}/../sys/conf/newvers.sh); echo $$${_V} 60de17cbccSHiroki Sato.endfor 61de17cbccSHiroki Sato.for _V in ${TARGET_ARCH} 62de17cbccSHiroki Sato.if !empty(TARGET:M${_V}) 63de17cbccSHiroki SatoOSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET} 64745ca085SGlen BarberVOLUME_LABEL= ${REVISION:C/[.-]/_/g}_${BRANCH:C/[.-]/_/g}_${TARGET} 65de17cbccSHiroki Sato.else 66de17cbccSHiroki SatoOSRELEASE= ${TYPE}-${REVISION}-${BRANCH}-${TARGET}-${TARGET_ARCH} 67745ca085SGlen BarberVOLUME_LABEL= ${REVISION:C/[.-]/_/g}_${BRANCH:C/[.-]/_/g}_${TARGET_ARCH} 68de17cbccSHiroki Sato.endif 69de17cbccSHiroki Sato.endfor 70de17cbccSHiroki Sato.endif 71de17cbccSHiroki Sato 7269c7d069SGlen Barber.if !defined(VOLUME_LABEL) || empty(VOLUME_LABEL) 7369c7d069SGlen BarberVOLUME_LABEL= FreeBSD_Install 7469c7d069SGlen Barber.endif 75ac23f460SGlen Barber 7612ad0bb1SNathan Whitehorn.if !exists(${DOCDIR}) 7712ad0bb1SNathan WhitehornNODOC= true 7812ad0bb1SNathan Whitehorn.endif 7912ad0bb1SNathan Whitehorn.if !exists(${PORTSDIR}) 8012ad0bb1SNathan WhitehornNOPORTS= true 81dd1a1b3dSJoerg Wunsch.endif 82dd1a1b3dSJoerg Wunsch 8312ad0bb1SNathan WhitehornEXTRA_PACKAGES= 846daa108fSRuslan Ermilov.if !defined(NOPORTS) 8512ad0bb1SNathan WhitehornEXTRA_PACKAGES+= ports.txz 866daa108fSRuslan Ermilov.endif 874731faa3SJordan K. Hubbard.if !defined(NOSRC) 8812ad0bb1SNathan WhitehornEXTRA_PACKAGES+= src.txz 892e3a1557SKen Smith.endif 90a1b193b5SJohn Baldwin.if !defined(NODOC) 9112ad0bb1SNathan WhitehornEXTRA_PACKAGES+= reldoc 92b2200964SJohn Baldwin.endif 93b2200964SJohn Baldwin 9412ad0bb1SNathan WhitehornRELEASE_TARGETS= ftp 95876acefaSHiroki SatoIMAGES= 9612ad0bb1SNathan Whitehorn.if exists(${.CURDIR}/${TARGET}/mkisoimages.sh) 9712ad0bb1SNathan WhitehornRELEASE_TARGETS+= cdrom 988cec99b6SGlen BarberIMAGES+= disc1.iso bootonly.iso 99d8824524SGlen Barber. if defined(WITH_DVD) && !empty(WITH_DVD) 100dc244562SGlen BarberRELEASE_TARGETS+= dvdrom 101dc244562SGlen BarberIMAGES+= dvd1.iso 102dc244562SGlen Barber. endif 1036daa108fSRuslan Ermilov.endif 10412ad0bb1SNathan Whitehorn.if exists(${.CURDIR}/${TARGET}/make-memstick.sh) 1053c334738SGlen BarberRELEASE_TARGETS+= memstick.img 106a9da1707SGlen BarberRELEASE_TARGETS+= mini-memstick.img 1073c334738SGlen BarberIMAGES+= memstick.img 108a9da1707SGlen BarberIMAGES+= mini-memstick.img 109e738d1eaSJohn Baldwin.endif 110e738d1eaSJohn Baldwin 111a55e34ebSGlen BarberCLEANFILES= packagesystem *.txz MANIFEST release ${IMAGES} 1120c535991SGlen Barber.if defined(WITH_COMPRESSED_IMAGES) && !empty(WITH_COMPRESSED_IMAGES) 1130c535991SGlen Barber. for I in ${IMAGES} 11455af5cf1SGlen BarberCLEANFILES+= ${I}.xz 1150c535991SGlen Barber. endfor 1160c535991SGlen Barber.endif 117cd15d7f3SGlen Barber.if defined(WITH_DVD) && !empty(WITH_DVD) 118cd15d7f3SGlen BarberCLEANFILES+= pkg-stage 119cd15d7f3SGlen Barber.endif 120a55e34ebSGlen BarberCLEANDIRS= dist ftp disc1 bootonly dvd 12146b13263SHiroki Satobeforeclean: 12246b13263SHiroki Sato chflags -R noschg . 1238eb4e096SRuslan Ermilov.include <bsd.obj.mk> 12446b13263SHiroki Satoclean: beforeclean 12512ad0bb1SNathan Whitehorn 12612ad0bb1SNathan Whitehornbase.txz: 127876acefaSHiroki Sato mkdir -p ${DISTDIR} 128876acefaSHiroki Sato cd ${WORLDDIR} && ${IMAKE} distributeworld DISTDIR=${.OBJDIR}/${DISTDIR} 12912ad0bb1SNathan Whitehorn# Set up mergemaster root database 130672d7ddbSSean Bruno sh ${.CURDIR}/scripts/mm-mtree.sh -m ${WORLDDIR} -F \ 131876acefaSHiroki Sato "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" -D "${.OBJDIR}/${DISTDIR}/base" 132e9120a25SGlen Barber etcupdate extract -B -M "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" \ 133d6d73d47SJohn Hay -s ${WORLDDIR} -d "${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate" 134bfc3bab8SNathan Whitehorn# Package all components 135876acefaSHiroki Sato cd ${WORLDDIR} && ${IMAKE} packageworld DISTDIR=${.OBJDIR}/${DISTDIR} 136876acefaSHiroki Sato mv ${DISTDIR}/*.txz . 13712ad0bb1SNathan Whitehorn 13812ad0bb1SNathan Whitehornkernel.txz: 139876acefaSHiroki Sato mkdir -p ${DISTDIR} 140876acefaSHiroki Sato cd ${WORLDDIR} && ${IMAKE} distributekernel packagekernel DISTDIR=${.OBJDIR}/${DISTDIR} 141876acefaSHiroki Sato mv ${DISTDIR}/kernel*.txz . 14212ad0bb1SNathan Whitehorn 14312ad0bb1SNathan Whitehornsrc.txz: 144876acefaSHiroki Sato mkdir -p ${DISTDIR}/usr 14512ad0bb1SNathan Whitehorn ln -fs ${WORLDDIR} ${DISTDIR}/usr/src 146*bd9cab6fSRui Paulo cd ${DISTDIR} && tar cLvf - --exclude .svn --exclude .zfs \ 147*bd9cab6fSRui Paulo --exclude .git --exclude @ --exclude usr/src/release/dist usr/src | \ 148*bd9cab6fSRui Paulo ${XZ_CMD} > ${.OBJDIR}/src.txz 14912ad0bb1SNathan Whitehorn 15012ad0bb1SNathan Whitehornports.txz: 151876acefaSHiroki Sato mkdir -p ${DISTDIR}/usr 15212ad0bb1SNathan Whitehorn ln -fs ${PORTSDIR} ${DISTDIR}/usr/ports 153*bd9cab6fSRui Paulo cd ${DISTDIR} && tar cLvf - \ 15423659c9dSGlen Barber --exclude .git --exclude .svn \ 15512ad0bb1SNathan Whitehorn --exclude usr/ports/distfiles --exclude usr/ports/packages \ 156*bd9cab6fSRui Paulo --exclude 'usr/ports/INDEX*' --exclude work usr/ports | \ 157*bd9cab6fSRui Paulo ${XZ_CMD} > ${.OBJDIR}/ports.txz 15812ad0bb1SNathan Whitehorn 15912ad0bb1SNathan Whitehornreldoc: 16012ad0bb1SNathan Whitehorn cd ${.CURDIR}/doc && ${MAKE} all install clean 'FORMATS=html txt' \ 16112ad0bb1SNathan Whitehorn INSTALL_COMPRESSED='' URLS_ABSOLUTE=YES DOCDIR=${.OBJDIR}/rdoc 162876acefaSHiroki Sato mkdir -p reldoc 16312ad0bb1SNathan Whitehorn.for i in hardware readme relnotes errata 16453089271STijl Coosemans ln -f rdoc/${RELNOTES_LANG}/${i}/article.txt reldoc/${i:tu}.TXT 16553089271STijl Coosemans ln -f rdoc/${RELNOTES_LANG}/${i}/article.html reldoc/${i:tu}.HTM 16612ad0bb1SNathan Whitehorn.endfor 167876acefaSHiroki Sato cp rdoc/${RELNOTES_LANG}/readme/docbook.css reldoc 16812ad0bb1SNathan Whitehorn 169a55e34ebSGlen Barberdisc1: packagesystem 17012ad0bb1SNathan Whitehorn# Install system 171a55e34ebSGlen Barber mkdir -p ${.TARGET} 1726e352319SNathan Whitehorn cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 173a55e34ebSGlen Barber DESTDIR=${.OBJDIR}/${.TARGET} MK_RESCUE=no MK_KERNEL_SYMBOLS=no \ 174ffc6fb79SGlen Barber MK_PROFILE=no MK_SENDMAIL=no MK_TESTS=no MK_LIB32=no \ 175ffc6fb79SGlen Barber MK_DEBUG_FILES=no 17612ad0bb1SNathan Whitehorn# Copy distfiles 177a55e34ebSGlen Barber mkdir -p ${.TARGET}/usr/freebsd-dist 178ffc6fb79SGlen Barber for dist in MANIFEST $$(ls *.txz | grep -v -- '-dbg'); \ 179a55e34ebSGlen Barber do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ 180ffc6fb79SGlen Barber done 18112ad0bb1SNathan Whitehorn# Copy documentation, if generated 18212ad0bb1SNathan Whitehorn.if !defined(NODOC) 183a55e34ebSGlen Barber cp reldoc/* ${.TARGET} 18412ad0bb1SNathan Whitehorn.endif 18512ad0bb1SNathan Whitehorn# Set up installation environment 186a55e34ebSGlen Barber ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf 187a55e34ebSGlen Barber echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf 188a55e34ebSGlen Barber echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf 189a55e34ebSGlen Barber echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf 190a55e34ebSGlen Barber echo vfs.mountroot.timeout=\"10\" >> ${.TARGET}/boot/loader.conf 191a55e34ebSGlen Barber cp ${.CURDIR}/rc.local ${.TARGET}/etc 192876acefaSHiroki Sato touch ${.TARGET} 19312ad0bb1SNathan Whitehorn 19446c413feSNathan Whitehornbootonly: packagesystem 19546c413feSNathan Whitehorn# Install system 196a55e34ebSGlen Barber mkdir -p ${.TARGET} 19746c413feSNathan Whitehorn cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 198a55e34ebSGlen Barber DESTDIR=${.OBJDIR}/${.TARGET} MK_AMD=no MK_AT=no \ 199ba7bd912SGlen Barber MK_GAMES=no MK_GROFF=no \ 200ba7bd912SGlen Barber MK_INSTALLLIB=no MK_LIB32=no MK_MAIL=no \ 201ba7bd912SGlen Barber MK_NCP=no MK_TOOLCHAIN=no MK_PROFILE=no \ 202ba7bd912SGlen Barber MK_INSTALLIB=no MK_RESCUE=no MK_DICT=no \ 203ffc6fb79SGlen Barber MK_KERNEL_SYMBOLS=no MK_TESTS=no MK_DEBUG_FILES=no 20446c413feSNathan Whitehorn# Copy manifest only (no distfiles) to get checksums 205a55e34ebSGlen Barber mkdir -p ${.TARGET}/usr/freebsd-dist 206a55e34ebSGlen Barber cp MANIFEST ${.TARGET}/usr/freebsd-dist 20746c413feSNathan Whitehorn# Copy documentation, if generated 20846c413feSNathan Whitehorn.if !defined(NODOC) 209a55e34ebSGlen Barber cp reldoc/* ${.TARGET} 21046c413feSNathan Whitehorn.endif 21146c413feSNathan Whitehorn# Set up installation environment 212a55e34ebSGlen Barber ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf 213a55e34ebSGlen Barber echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf 214a55e34ebSGlen Barber echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf 215a55e34ebSGlen Barber echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf 216a55e34ebSGlen Barber echo vfs.mountroot.timeout=\"10\" >> ${.TARGET}/boot/loader.conf 217a55e34ebSGlen Barber cp ${.CURDIR}/rc.local ${.TARGET}/etc 21846c413feSNathan Whitehorn 219a55e34ebSGlen Barberdvd: packagesystem 220dc244562SGlen Barber# Install system 221dc244562SGlen Barber mkdir -p ${.TARGET} 222dc244562SGlen Barber cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \ 223ba7bd912SGlen Barber DESTDIR=${.OBJDIR}/${.TARGET} MK_RESCUE=no MK_KERNEL_SYMBOLS=no \ 224ffc6fb79SGlen Barber MK_TESTS=no MK_DEBUG_FILES=no 225dc244562SGlen Barber# Copy distfiles 226dc244562SGlen Barber mkdir -p ${.TARGET}/usr/freebsd-dist 227ffc6fb79SGlen Barber for dist in MANIFEST $$(ls *.txz | grep -v -- '-dbg'); \ 228ffc6fb79SGlen Barber do cp $${dist} ${.TARGET}/usr/freebsd-dist; \ 229ffc6fb79SGlen Barber done 230dc244562SGlen Barber# Copy documentation, if generated 231dc244562SGlen Barber.if !defined(NODOC) 232dc244562SGlen Barber cp reldoc/* ${.TARGET} 233dc244562SGlen Barber.endif 234dc244562SGlen Barber# Set up installation environment 235dc244562SGlen Barber ln -fs /tmp/bsdinstall_etc/resolv.conf ${.TARGET}/etc/resolv.conf 236dc244562SGlen Barber echo sendmail_enable=\"NONE\" > ${.TARGET}/etc/rc.conf 237dc244562SGlen Barber echo hostid_enable=\"NO\" >> ${.TARGET}/etc/rc.conf 23873e46dbaSGlen Barber echo debug.witness.trace=0 >> ${.TARGET}/etc/sysctl.conf 2397f100614SGlen Barber echo vfs.mountroot.timeout=\"10\" >> ${.TARGET}/boot/loader.conf 240dc244562SGlen Barber cp ${.CURDIR}/rc.local ${.TARGET}/etc 241dc244562SGlen Barber touch ${.TARGET} 242dc244562SGlen Barber 2438cec99b6SGlen Barberrelease.iso: disc1.iso 244a55e34ebSGlen Barberdisc1.iso: disc1 245a55e34ebSGlen Barber sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b ${VOLUME_LABEL}_CD ${.TARGET} disc1 24612ad0bb1SNathan Whitehorn 247dc244562SGlen Barberdvd1.iso: dvd pkg-stage 248ac23f460SGlen Barber sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b ${VOLUME_LABEL}_DVD ${.TARGET} dvd 249dc244562SGlen Barber 25046c413feSNathan Whitehornbootonly.iso: bootonly 251ac23f460SGlen Barber sh ${.CURDIR}/${TARGET}/mkisoimages.sh -b ${VOLUME_LABEL}_BO ${.TARGET} bootonly 25246c413feSNathan Whitehorn 253cb95a96bSGlen Barbermemstick: memstick.img 254a55e34ebSGlen Barbermemstick.img: disc1 255a55e34ebSGlen Barber sh ${.CURDIR}/${TARGET}/make-memstick.sh disc1 ${.TARGET} 25612ad0bb1SNathan Whitehorn 257a9da1707SGlen Barbermini-memstick: mini-memstick.img 258a55e34ebSGlen Barbermini-memstick.img: bootonly 259a9da1707SGlen Barber sh ${.CURDIR}/${TARGET}/make-memstick.sh bootonly ${.TARGET} 260a9da1707SGlen Barber 26112ad0bb1SNathan Whitehornpackagesystem: base.txz kernel.txz ${EXTRA_PACKAGES} 262876acefaSHiroki Sato sh ${.CURDIR}/scripts/make-manifest.sh *.txz > MANIFEST 263299a8b95SNathan Whitehorn touch ${.TARGET} 26412ad0bb1SNathan Whitehorn 265dc244562SGlen Barberpkg-stage: 2666f50c4eaSGlen Barber.if !defined(NOPKG) 2676f50c4eaSGlen Barber env REPOS_DIR=${.CURDIR}/pkg_repos/ \ 2686f50c4eaSGlen Barber sh ${.CURDIR}/scripts/pkg-stage.sh 2690d0e89b7SGlen Barber mkdir -p ${.OBJDIR}/dvd/packages/repos/ 2700d0e89b7SGlen Barber cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \ 2710d0e89b7SGlen Barber ${.OBJDIR}/dvd/packages/repos/ 272dc244562SGlen Barber.endif 2730d0e89b7SGlen Barber touch ${.TARGET} 274dc244562SGlen Barber 2758cec99b6SGlen Barbercdrom: disc1.iso bootonly.iso 276dc244562SGlen Barberdvdrom: dvd1.iso 27712ad0bb1SNathan Whitehornftp: packagesystem 278299a8b95SNathan Whitehorn rm -rf ftp 279876acefaSHiroki Sato mkdir -p ftp 280299a8b95SNathan Whitehorn cp *.txz MANIFEST ftp 28112ad0bb1SNathan Whitehorn 2824afe7cf5SGlen Barberrelease: real-release vm-release cloudware-release 283a55e34ebSGlen Barber touch ${.TARGET} 2844afe7cf5SGlen Barber 2854afe7cf5SGlen Barberreal-release: 2860bd47e83SNathan Whitehorn ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj 2870bd47e83SNathan Whitehorn ${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS} 28812ad0bb1SNathan Whitehorn 2892d4ff62fSGlen Barberinstall: release-install vm-install 2902d4ff62fSGlen Barber 2912d4ff62fSGlen Barberrelease-install: 292876acefaSHiroki Sato.if defined(DESTDIR) && !empty(DESTDIR) 293876acefaSHiroki Sato mkdir -p ${DESTDIR} 294876acefaSHiroki Sato.endif 295de17cbccSHiroki Sato cp -a ftp ${DESTDIR}/ 296de17cbccSHiroki Sato.for I in ${IMAGES} 297de17cbccSHiroki Sato cp -p ${I} ${DESTDIR}/${OSRELEASE}-${I} 298510f3303SGlen Barber. if defined(WITH_COMPRESSED_IMAGES) && !empty(WITH_COMPRESSED_IMAGES) 299*bd9cab6fSRui Paulo ${XZ_CMD} -k ${DESTDIR}/${OSRELEASE}-${I} 300cbc0e08aSGlen Barber. endif 301de17cbccSHiroki Sato.endfor 302de17cbccSHiroki Sato cd ${DESTDIR} && sha256 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.SHA256 303de17cbccSHiroki Sato cd ${DESTDIR} && md5 ${OSRELEASE}* > ${DESTDIR}/CHECKSUM.MD5 304a68d274bSGlen Barber 3056513e474SGlen Barber.include "${.CURDIR}/Makefile.vm" 306