You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
510 B
16 lines
510 B
ifndef $(GOPATH)
|
|
GOPATH=$(shell go env GOPATH)
|
|
export GOPATH
|
|
endif
|
|
|
|
build: install_prerequisites bindata
|
|
$(GOPATH)/bin/swag init -o web/swagger
|
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/dist/mrg
|
|
$(shell cp -r web ./build/dist/)
|
|
|
|
bindata: install_prerequisites
|
|
$(GOPATH)/bin/go-bindata -pkg bindata -o assets/bindata/bindata.go -prefix internal/data internal/data web
|
|
|
|
install_prerequisites:
|
|
go get -u github.com/swaggo/swag/cmd/swag
|
|
go get -u github.com/go-bindata/go-bindata/...
|
|
|