-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (31 loc) · 724 Bytes
/
Makefile
File metadata and controls
47 lines (31 loc) · 724 Bytes
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
36
37
38
39
40
41
42
43
44
45
46
47
# NOTE: This Makefile is only necessary if you
# plan on developing the hsp tool and library.
# Installation can still be performed with a
# normal `go install`.
# generated integration test files
GGEN = ./test/covenantsql.go
SHELL := /bin/bash
BIN = $(GOBIN)/hsp
.PHONY: clean wipe install get-deps bench all
$(BIN):
cd hsp && go build . && go install .
install: $(BIN)
GGEN:
go generate ./test/covenantsql.go
test: all
go test -v ./...
bench: all
go test -bench ./...
clean:
$(RM) GGEN
wipe: clean
$(RM) $(BIN)
get-deps:
go get -d -t ./...
all: install GGEN
# travis CI enters here
travis:
go get -d -t ./...
cd hsp && go build -o "$${GOPATH%%:*}/bin/hsp" .
go generate ./test
go test -v ./...