From d3de83ea0515f55c5a614e997985e1a1e198f404 Mon Sep 17 00:00:00 2001 From: Martin Ringehahn Date: Mon, 27 Oct 2014 12:41:16 -0400 Subject: [PATCH] codify packaging --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 23ecb72..c602993 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,13 @@ -build: deps +PACKAGE=marathon-consul-discovery_linux_amd64.zip +BINARY=/opt/gopath/bin/marathon-consul-discovery + +$(BINARY): deps go build ./... deps: go get ./... +$(PACKAGE): $(BINARY) + zip -j $@ $< + +package: $(PACKAGE)