From 24018160d8267a3e129ecf72d30ddc7e38b6cb45 Mon Sep 17 00:00:00 2001 From: Ryan Uber Date: Wed, 30 Sep 2015 12:54:59 -0700 Subject: [PATCH] Add release target, package Nomad --- Makefile | 3 +++ scripts/build.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index eff369b13..3f8362668 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,9 @@ dev: deps format bin: @sh -c "'$(CURDIR)/scripts/build.sh'" +release: updatedeps + @$(MAKE) bin + cov: gocov test ./... | gocov-html > /tmp/coverage.html open /tmp/coverage.html diff --git a/scripts/build.sh b/scripts/build.sh index d7fca1c14..36566413a 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -65,7 +65,7 @@ for F in $(find ${DEV_PLATFORM} -mindepth 1 -maxdepth 1 -type f); do cp ${F} ${MAIN_GOPATH}/bin/ done -if [[ "${NOMAD_DEV}" ]]; then +if [[ "x${NOMAD_DEV}" == "x" ]]; then # Zip and copy to the dist dir echo "==> Packaging..." for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do