mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-15 03:36:33 +03:00
33de540183
- Development targets recurse with the -debug flag - Assets built as normal dependencies
26 lines
612 B
Makefile
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
|