Have only one target that specifies the asset bindata
- Development targets recurse with the -debug flag - Assets built as normal dependencies
This commit is contained in:
parent
61ecc9e9a1
commit
33de540183
20
Makefile
20
Makefile
@ -1,21 +1,25 @@
|
|||||||
dev:
|
BINDATA=
|
||||||
rm -f bindata.go
|
|
||||||
go-bindata -debug -ignore=\\.gitignore -ignore=\\.DS_Store -ignore=\\.gitkeep static/...
|
dev: build-dev-assets
|
||||||
go build
|
go build
|
||||||
@echo "You can now execute ./pgweb"
|
@echo "You can now execute ./pgweb"
|
||||||
|
|
||||||
build:
|
build-assets:
|
||||||
rm -f bindata.go
|
go-bindata $(BINDATA) -ignore=\\.gitignore -ignore=\\.DS_Store -ignore=\\.gitkeep static/...
|
||||||
go-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}}"
|
gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}"
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
go get github.com/mitchellh/gox
|
go get github.com/mitchellh/gox
|
||||||
go get github.com/jteeuwen/go-bindata/...
|
go get github.com/jteeuwen/go-bindata/...
|
||||||
go-bindata -debug -ignore=\\.gitignore -ignore=\\.DS_Store -ignore=\\.gitkeep static/...
|
@$(MAKE) --no-print-directory build-dev-assets
|
||||||
go get
|
go get
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f ./pgweb
|
rm -f ./pgweb
|
||||||
rm -f ./bin/*
|
rm -f ./bin/*
|
||||||
rm -f bindata.go
|
rm -f bindata.go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user