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
This commit is contained in:
Dan Sosedoff 2014-12-13 20:43:07 -06:00
parent e0dd4c6a6f
commit d904ea9a29

View File

@ -1,16 +1,20 @@
BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard $< | sed 's/^/-ignore=/;s/[.]/[.]/g') 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/ assets: static/
go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep $<... go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep $<...
dev-assets: dev-assets:
@$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug" @$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug"
dev: dev-assets
godep go build
@echo "You can now execute ./pgweb"
build: assets 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}}" gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}"
setup: setup: