2014-03-02 06:46:10 +03:00
|
|
|
SHA := $(shell git rev-parse --short HEAD)
|
2015-04-07 10:20:55 +02:00
|
|
|
VERSION := 0.4.0-alpha
|
2014-02-07 13:10:01 +03:00
|
|
|
|
2015-04-26 01:16:56 +02:00
|
|
|
all: concat bindata build
|
2014-04-10 20:44:26 +03:00
|
|
|
|
|
|
|
deps:
|
2014-10-10 11:46:41 +03:00
|
|
|
go get -t -v ./...
|
2014-04-10 20:44:26 +03:00
|
|
|
|
2014-06-05 00:25:38 +03:00
|
|
|
test:
|
|
|
|
go vet ./...
|
|
|
|
go test -cover -short ./...
|
2014-04-10 20:44:26 +03:00
|
|
|
|
2014-07-14 05:41:08 +03:00
|
|
|
build:
|
2015-04-07 10:20:55 +02:00
|
|
|
go build -ldflags "-X main.revision $(SHA) -X main.version $(VERSION).$(SHA)"
|
2014-06-22 00:22:38 +03:00
|
|
|
|
2014-06-05 00:25:38 +03:00
|
|
|
clean:
|
2014-07-14 05:41:08 +03:00
|
|
|
find . -name "*.out" -delete
|
2015-04-07 10:20:55 +02:00
|
|
|
rm -f drone
|
2015-04-26 01:16:56 +02:00
|
|
|
rm -f bindata.go
|
|
|
|
|
|
|
|
concat:
|
|
|
|
cat server/static/scripts/drone.js \
|
|
|
|
server/static/scripts/services/*.js \
|
|
|
|
server/static/scripts/filters/*.js \
|
|
|
|
server/static/scripts/controllers/*.js \
|
2015-04-26 06:27:24 +02:00
|
|
|
server/static/scripts/term.js > server/static/scripts/drone.min.js
|
2015-04-26 01:16:56 +02:00
|
|
|
|
|
|
|
bindata_debug:
|
|
|
|
go-bindata --debug server/static/...
|
|
|
|
|
|
|
|
bindata:
|
|
|
|
go-bindata server/static/...
|