pgweb/Makefile
Chris Bandy 33de540183 Have only one target that specifies the asset bindata
- Development targets recurse with the -debug flag
- Assets built as normal dependencies
2014-10-31 11:31:59 +00:00

26 lines
612 B
Makefile

BINDATA=
dev: build-dev-assets
go build
@echo "You can now execute ./pgweb"
build-assets:
go-bindata $(BINDATA) -ignore=\\.gitignore -ignore=\\.DS_Store -ignore=\\.gitkeep static/...
build-dev-assets:
@$(MAKE) --no-print-directory build-assets BINDATA="-debug"
build: build-assets
gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}"
setup:
go get github.com/mitchellh/gox
go get github.com/jteeuwen/go-bindata/...
@$(MAKE) --no-print-directory build-dev-assets
go get
clean:
rm -f ./pgweb
rm -f ./bin/*
rm -f bindata.go