mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Rename the 'release' target to 'real-release', and
add two targets, 'vm-release' and 'cloudware-release', that are invoked if WITH_VMIMAGES and WITH_CLOUDWARE are not empty. This fixes an issue where 'make release' would not build the cloud provider targets because CLOUDWARE was not yet set. [1] Move the WITH_VMIMAGES and WITH_CLOUDWARE targets to Makefile.vm. Note: There is no 'cloudware-install' target yet, since some of the disk image names may need to be specific to the provider, so this is probably best handled by the build scripts. Reported by: cperciva [1] MFC after: 1 month X-MFC-with: r277458 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
e9c93198bc
commit
4afe7cf500
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277536
@ -8,7 +8,10 @@
|
|||||||
# memstick: Builds memory stick image (memstick.img)
|
# memstick: Builds memory stick image (memstick.img)
|
||||||
# mini-memstick: Builds minimal memory stick image (mini-memstick.img)
|
# mini-memstick: Builds minimal memory stick image (mini-memstick.img)
|
||||||
# ftp: Sets up FTP distribution area (ftp)
|
# ftp: Sets up FTP distribution area (ftp)
|
||||||
# release: Build all media and FTP distribution area
|
# release: Invokes real-release, vm-release, and cloudware-release targets
|
||||||
|
# real-release: Build all media and FTP distribution area
|
||||||
|
# vm-release: Build all virtual machine image targets
|
||||||
|
# cloudware-release: Build all cloud hosting provider targets
|
||||||
# install: Invokes the release-install and vm-install targets
|
# install: Invokes the release-install and vm-install targets
|
||||||
# release-install: Copies all release installation media into ${DESTDIR}
|
# release-install: Copies all release installation media into ${DESTDIR}
|
||||||
# vm-install: Copies all virtual machine images into ${DESTDIR}
|
# vm-install: Copies all virtual machine images into ${DESTDIR}
|
||||||
@ -275,15 +278,11 @@ ftp: packagesystem
|
|||||||
mkdir -p ftp
|
mkdir -p ftp
|
||||||
cp *.txz MANIFEST ftp
|
cp *.txz MANIFEST ftp
|
||||||
|
|
||||||
release:
|
release: real-release vm-release cloudware-release
|
||||||
|
|
||||||
|
real-release:
|
||||||
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj
|
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} obj
|
||||||
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS}
|
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${RELEASE_TARGETS}
|
||||||
.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
|
|
||||||
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${VMTARGETS}
|
|
||||||
.endif
|
|
||||||
.if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE) && !empty(CLOUDWARE)
|
|
||||||
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${CLOUDTARGETS}
|
|
||||||
.endif
|
|
||||||
|
|
||||||
install: release-install vm-install
|
install: release-install vm-install
|
||||||
|
|
||||||
|
@ -109,3 +109,13 @@ vm-install:
|
|||||||
cd ${DESTDIR}/vmimages && md5 ${OSRELEASE}* > \
|
cd ${DESTDIR}/vmimages && md5 ${OSRELEASE}* > \
|
||||||
${DESTDIR}/vmimages/CHECKSUM.MD5
|
${DESTDIR}/vmimages/CHECKSUM.MD5
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
|
vm-release:
|
||||||
|
.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
|
||||||
|
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${VMTARGETS}
|
||||||
|
.endif
|
||||||
|
|
||||||
|
cloudware-release:
|
||||||
|
.if defined(WITH_CLOUDWARE) && !empty(WITH_CLOUDWARE) && !empty(CLOUDWARE)
|
||||||
|
${MAKE} -C ${.CURDIR} ${.MAKEFLAGS} ${CLOUDTARGETS}
|
||||||
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user