aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile.ec2
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-05-06 11:50:30 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-05-06 11:50:30 +0000
commit2252f43bdceb37482c978c760ecc37f82f34d422 (patch)
tree759e7355bf352e43e4a156a773a28d3d9fdbcad7 /release/Makefile.ec2
parentde7df74b4855cd9bdd01583a12409d5b1e6da354 (diff)
parent8a6dbb6455abdcc3271b7789b55e10e9c57f4414 (diff)
downloadsrc-2252f43bdceb37482c978c760ecc37f82f34d422.tar.gz
src-2252f43bdceb37482c978c760ecc37f82f34d422.zip
MFH: r282315-r282534
Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-arm-redux/; revision=282535
Diffstat (limited to 'release/Makefile.ec2')
-rw-r--r--release/Makefile.ec213
1 files changed, 12 insertions, 1 deletions
diff --git a/release/Makefile.ec2 b/release/Makefile.ec2
index f74d32027a7d..f7f34a6fab79 100644
--- a/release/Makefile.ec2
+++ b/release/Makefile.ec2
@@ -12,6 +12,15 @@ AMINAMESUFFIX!= date +-%Y-%m-%d
PUBLISH= --public
.endif
+CLEANFILES+= ec2ami
+
+.if !exists(/usr/local/bin/bsdec2-image-upload)
+CW_EC2_PORTINSTALL= cw-ec2-portinstall
+CLEANFILES+= ${CW_EC2_PORTINSTALL}
+.else
+CW_EC2_PORTINSTALL=
+.endif
+
cw-ec2-portinstall:
.if exists(${PORTSDIR}/net/bsdec2-image-upload/Makefile)
make -C ${PORTSDIR}/net/bsdec2-image-upload BATCH=1 all install clean
@@ -21,8 +30,9 @@ cw-ec2-portinstall:
. endif
env ASSUME_ALWAYS_YES=yes pkg install -y net/bsdec2-image-upload
.endif
+ @touch ${.TARGET}
-ec2ami: cw-ec2 cw-ec2-portinstall
+ec2ami: cw-ec2 ${CW_EC2_PORTINSTALL}
.if !defined(AWSKEYFILE) || !exists(${AWSKEYFILE})
@echo "--------------------------------------------------------------"
@echo ">>> AWSKEYFILE must point at AWS keys for EC2 AMI creation"
@@ -46,3 +56,4 @@ ec2ami: cw-ec2 cw-ec2-portinstall
"${TYPE} ${REVISION}-${BRANCH}${AMINAMESUFFIX}" \
"${TYPE} ${REVISION}-${BRANCH}" \
${AWSREGION} ${AWSBUCKET} ${AWSKEYFILE}
+ @touch ${.TARGET}