From 1bae5b7dd515869d381dc8ae9ed8f4ccf2e6337a Mon Sep 17 00:00:00 2001 From: James Laska Date: Tue, 7 Jan 2014 12:04:25 -0500 Subject: [PATCH] Create 'ami' target that relies on OFFICIAL variable --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 05c2fcb579..b42f4b424a 100644 --- a/Makefile +++ b/Makefile @@ -187,9 +187,12 @@ deb: sdist @echo "awx_$(DEB_PKG_RELEASE).deb admin optional" > $(DEB_BUILD_DIR)/debian/realfiles (cd $(DEB_BUILD_DIR) && PKG_RELEASE=$(DEB_PKG_RELEASE) dpkg-buildpackage -nc -us -uc -b --changes-option="-fdebian/realfiles") -ami_release: - packer build -var-file=vars-awxkeys.json -var-file=vars-release.json awx.json -ami_nightly: - packer build -var-file=vars-awxkeys.json -var-file=vars-nightly.json awx.json +ami: + if [ "$(OFFICIAL)" = "yes" ] ; then \ + packer build -var-file=vars-awxkeys.json -var-file=vars-release.json awx.json + else \ + packer build -var-file=vars-awxkeys.json -var-file=vars-nightly.json awx.json + fi + install: $(PYTHON) setup.py install egg_info -b ""