diff --git a/Makefile b/Makefile index 4836788..45f36c6 100644 --- a/Makefile +++ b/Makefile @@ -1,23 +1,24 @@ .PHONY: docker -BIN := go-bindata +GOPATH = $(shell go env GOPATH) +GOBINDATA := $(GOPATH)/bin/go-bindata + # BIN := go-bindata-assetfs all: dep - $(BIN) -pkg data -o data/bindata.go static static/images + $(GOBINDATA) -pkg data -o data/bindata.go static static/images dev: - $(BIN) -debug -pkg data -o data/bindata.go static static/images + $(GOBINDATA) -debug -pkg data -o data/bindata.go static static/images go install github.com/sigmonsays/graphspace/... dep: go get github.com/jteeuwen/go-bindata/go-bindata go get github.com/elazarl/go-bindata-assetfs/... - docker: - # build docker image + # build docker image docker build -t graphspace:latest . docker-push: docker tag graphspace:latest sigmonsays/graphspace:latest