mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
d904ea9a29
- Rename "make build" to "make release" - Task "make release" will build all targets - Task "make build" will build production binary for current os
32 lines
788 B
Makefile
32 lines
788 B
Makefile
BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard $< | sed 's/^/-ignore=/;s/[.]/[.]/g')
|
|
|
|
assets: static/
|
|
go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep $<...
|
|
|
|
dev-assets:
|
|
@$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug"
|
|
|
|
dev: dev-assets
|
|
godep go build
|
|
@echo "You can now execute ./pgweb"
|
|
|
|
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}}"
|
|
|
|
setup:
|
|
go get github.com/tools/godep
|
|
godep get github.com/mitchellh/gox
|
|
godep get github.com/jteeuwen/go-bindata/...
|
|
godep restore
|
|
|
|
clean:
|
|
rm -f ./pgweb
|
|
rm -f ./bin/*
|
|
rm -f bindata.go
|
|
|
|
docker:
|
|
docker build -t pgweb .
|