From d904ea9a29b7c4dbcf1c0bd6e04c6df558d3e31e Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Sat, 13 Dec 2014 20:43:07 -0600 Subject: [PATCH] Makefile changes - Rename "make build" to "make release" - Task "make release" will build all targets - Task "make build" will build production binary for current os --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 926dea3..02001ad 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,20 @@ BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard $< | sed 's/^/-ignore=/;s/[.]/[.]/g') -dev: dev-assets - godep go build - @echo "You can now execute ./pgweb" - assets: static/ go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep $<... dev-assets: @$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug" +dev: dev-assets + godep go build + @echo "You can now execute ./pgweb" + build: assets + godep go build + @echo "You can now execute ./pgweb" + +release: assets gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}" setup: