Fix errors about go-bindata when building magneticow
This commit is contained in:
parent
f9d6146747
commit
38179c271b
6
Makefile
6
Makefile
@ -1,13 +1,13 @@
|
|||||||
.PHONY: test format magneticod magneticow ensure test-magneticod test-magneticow test-persistence image image-magneticow image-magneticod
|
.PHONY: test format magneticod magneticow ensure test-magneticod test-magneticow test-persistence image image-magneticow image-magneticod
|
||||||
|
|
||||||
all: test magneticod magneticow
|
all: ensure test magneticod magneticow
|
||||||
|
|
||||||
magneticod:
|
magneticod:
|
||||||
go install --tags fts5 "-ldflags=-s -w" github.com/boramalper/magnetico/cmd/magneticod
|
go install --tags fts5 "-ldflags=-s -w" github.com/boramalper/magnetico/cmd/magneticod
|
||||||
|
|
||||||
magneticow:
|
magneticow:
|
||||||
# TODO: minify files!
|
# TODO: minify files!
|
||||||
go-bindata -o="cmd/magneticow/bindata.go" -prefix="cmd/magneticow/data/" cmd/magneticow/data/...
|
go-bindata -o="cmd/magneticow/bindata.go" -prefix="cmd/magneticow/data/" -pkg="main" cmd/magneticow/data/...
|
||||||
go install --tags fts5 "-ldflags=-s -w" github.com/boramalper/magnetico/cmd/magneticow
|
go install --tags fts5 "-ldflags=-s -w" github.com/boramalper/magnetico/cmd/magneticow
|
||||||
|
|
||||||
image-magneticod:
|
image-magneticod:
|
||||||
@ -21,11 +21,13 @@ image: image-magneticod image-magneticow
|
|||||||
# Download dependencies
|
# Download dependencies
|
||||||
ensure:
|
ensure:
|
||||||
dep ensure -v
|
dep ensure -v
|
||||||
|
go get -u github.com/jteeuwen/go-bindata/...
|
||||||
|
|
||||||
test-magneticod:
|
test-magneticod:
|
||||||
go test github.com/boramalper/magnetico/cmd/magneticod/...
|
go test github.com/boramalper/magnetico/cmd/magneticod/...
|
||||||
|
|
||||||
test-magneticow:
|
test-magneticow:
|
||||||
|
go-bindata -o="cmd/magneticow/bindata.go" -prefix="cmd/magneticow/data/" -pkg="main" cmd/magneticow/data/...
|
||||||
go test github.com/boramalper/magnetico/cmd/magneticow/...
|
go test github.com/boramalper/magnetico/cmd/magneticow/...
|
||||||
|
|
||||||
test-persistence:
|
test-persistence:
|
||||||
|
Loading…
Reference in New Issue
Block a user