2014-10-31 08:02:58 +03:00
|
|
|
BINDATA=
|
|
|
|
|
|
|
|
dev: build-dev-assets
|
2014-10-14 03:29:44 +04:00
|
|
|
go build
|
|
|
|
@echo "You can now execute ./pgweb"
|
|
|
|
|
2014-10-31 08:02:58 +03:00
|
|
|
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
|
2014-10-27 23:26:14 +03:00
|
|
|
gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}"
|
2014-10-25 21:55:12 +04:00
|
|
|
|
2014-10-25 05:52:15 +04:00
|
|
|
setup:
|
2014-11-06 03:18:41 +03:00
|
|
|
go get github.com/tools/godep
|
2014-10-11 02:32:47 +04:00
|
|
|
go get github.com/mitchellh/gox
|
2014-10-13 22:58:26 +04:00
|
|
|
go get github.com/jteeuwen/go-bindata/...
|
2014-10-25 05:52:15 +04:00
|
|
|
go get
|
2014-10-11 02:32:47 +04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ./pgweb
|
2014-10-14 03:31:28 +04:00
|
|
|
rm -f ./bin/*
|
2014-10-31 08:02:58 +03:00
|
|
|
rm -f bindata.go
|
2014-11-06 03:27:14 +03:00
|
|
|
|
|
|
|
docker:
|
|
|
|
docker build -t pgweb .
|