forked from harness/gitness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 766 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
SHA := $(shell git rev-parse --short HEAD)
VERSION := 0.4.0-alpha
all: concat bindata build
deps:
go get -t -v ./...
test:
go vet ./...
go test -cover -short ./...
build:
go build -ldflags "-X main.revision $(SHA) -X main.version $(VERSION).$(SHA)"
clean:
find . -name "*.out" -delete
rm -f drone
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 \
server/static/scripts/term.js > server/static/scripts/drone.min.js
bindata_deps:
go get github.com/jteeuwen/go-bindata/...
bindata_debug:
$$GOPATH/bin/go-bindata --debug server/static/...
bindata:
$$GOPATH/bin/go-bindata server/static/...