diff options
author | gjb <gjb@FreeBSD.org> | 2014-10-01 19:25:02 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2014-10-01 19:25:02 +0000 |
commit | 7403b4f22a256bcfea6b3206227339ad68c309c5 (patch) | |
tree | 51c848b9d21a23151371e167709b1bb0ce88f214 /release/Makefile | |
parent | b2b02a9be6c037b4a25a32b84407830b9c50bcb0 (diff) | |
download | FreeBSD-src-7403b4f22a256bcfea6b3206227339ad68c309c5.zip FreeBSD-src-7403b4f22a256bcfea6b3206227339ad68c309c5.tar.gz |
After evaluating WITH_VMIMAGES is non-empty, ensure
the mk-vmimage.sh script exists before running it.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release/Makefile')
-rw-r--r-- | release/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/Makefile b/release/Makefile index 3379b81..7d87013 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} |