fix makefile go-bindata usage

see #204 (commit got lost?)
This commit is contained in:
Bora M. Alper 2020-11-27 20:03:56 +00:00
parent 01812acdde
commit 9f9024674e
No known key found for this signature in database
GPG Key ID: 8F1A9504E1BD114D

View File

@ -8,7 +8,7 @@ magneticod:
magneticow:
# TODO: minify files!
# https://github.com/kevinburke/go-bindata
go-bindata -o="cmd/magneticow/bindata.go" -prefix="cmd/magneticow/data/" cmd/magneticow/data/...
go-bindata -pkg "main" -o="cmd/magneticow/bindata.go" -prefix="cmd/magneticow/data/" cmd/magneticow/data/...
# Prepend the linter instruction to the beginning of the file
sed -i '1s;^;//lint:file-ignore * Ignore file altogether\n;' cmd/magneticow/bindata.go
go install --tags fts5 "-ldflags=-s -w -X main.compiledOn=`date -u +%Y-%m-%dT%H:%M:%SZ`" ./cmd/magneticow