1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00
woodpecker/Makefile

36 lines
766 B
Makefile
Raw Normal View History

SHA := $(shell git rev-parse --short HEAD)
VERSION := 0.4.0-alpha
2014-02-07 13:10:01 +03:00
all: concat bindata build
deps:
go get -t -v ./...
2014-06-05 00:25:38 +03:00
test:
go vet ./...
go test -cover -short ./...
build:
go build -ldflags "-X main.revision $(SHA) -X main.version $(VERSION).$(SHA)"
2014-06-05 00:25:38 +03:00
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
2015-04-28 23:39:48 +02:00
bindata_deps:
go get github.com/jteeuwen/go-bindata/...
bindata_debug:
2015-04-28 23:39:48 +02:00
$$GOPATH/bin/go-bindata --debug server/static/...
bindata:
2015-04-28 23:39:48 +02:00
$$GOPATH/bin/go-bindata server/static/...