aboutsummaryrefslogtreecommitdiff
path: root/release
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2014-10-01 19:25:02 +0000
committerGlen Barber <gjb@FreeBSD.org>2014-10-01 19:25:02 +0000
commita2950cc4e3e6730f1d961fe8c56d225034cf5be8 (patch)
tree51c848b9d21a23151371e167709b1bb0ce88f214 /release
parent0bc9be5e7435fb486faadedb649a2e7913efcfc5 (diff)
downloadsrc-a2950cc4e3e6730f1d961fe8c56d225034cf5be8.tar.gz
src-a2950cc4e3e6730f1d961fe8c56d225034cf5be8.zip
After evaluating WITH_VMIMAGES is non-empty, ensure
the mk-vmimage.sh script exists before running it. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-vmimage/; revision=272381
Diffstat (limited to 'release')
-rw-r--r--release/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile
index 3379b81de584..7d87013e2d5a 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -317,18 +317,22 @@ install:
vm-base:
.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
+. if exists(${.CURDIR}/${TARGET}/mk-vmimage.sh)
env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
${.CURDIR}/${TARGET}/mk-vmimage.sh ${.TARGET} \
${VMBASE}.img ${WORLDDIR} ${.OBJDIR}/${.TARGET} ${VMSIZE}
+. endif
.endif
touch ${.TARGET}
vm-image: vm-base
.if defined(WITH_VMIMAGES) && !empty(WITH_VMIMAGES)
-. for FORMAT in ${VMFORMATS}
+. if exists(${.CURDIR}/${TARGET}/mk-vmimage.sh)
+. for FORMAT in ${VMFORMATS}
env TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
${.CURDIR}/${TARGET}/mk-vmimage.sh ${.TARGET} \
${VMBASE}.img ${FORMAT} ${VMBASE}.${FORMAT}
-. endfor
+. endfor
+. endif
.endif
touch ${.TARGET}