Skip to content

Commit 9f5d236

Browse files
committed
add and use deps target to Makefile
1 parent 325920d commit 9f5d236

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,32 @@
11
TARGETS = span-import span-export span-gh-dump span-hspec
22

33
# http://docs.travis-ci.com/user/languages/go/#Default-Test-Script
4-
test:
5-
go get ./... && go test -v ./...
4+
test: deps
5+
go test -v ./...
6+
7+
deps:
8+
go get ./...
9+
10+
imports:
11+
goimports -w .
612

713
cover:
814
go test -cover ./...
915

1016
all: $(TARGETS)
1117

12-
span-import: imports
18+
span-import: imports deps
1319
go build -o span-import cmd/span-import/main.go
1420

15-
span-export: imports
21+
span-export: imports deps
1622
go build -o span-export cmd/span-export/main.go
1723

18-
span-hspec: imports
24+
span-hspec: imports deps
1925
go build -o span-hspec cmd/span-hspec/main.go
2026

21-
span-gh-dump: imports
27+
span-gh-dump: imports deps
2228
go build -o span-gh-dump cmd/span-gh-dump/main.go
2329

24-
imports:
25-
goimports -w .
26-
2730
clean:
2831
rm -f $(TARGETS)
2932
rm -f span_*deb

0 commit comments

Comments
 (0)