-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (37 loc) · 981 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PACKAGES = $(shell ./scripts/packages.sh)
EXTERNAL_TOOLS = \
github.com/golang/dep/cmd/dep \
github.com/laher/goxc \
github.com/motemen/gobump \
github.com/tcnksm/ghr \
github.com/Songmu/ghch/cmd/ghch
setup:
@for tool in $(EXTERNAL_TOOLS) ; do \
echo "Installing $$tool" ; \
go get $$tool; \
done
test-all: vet lint test
test:
./scripts/test.sh
vet:
go vet $(PACKAGES)
lint:
@if [ -z `which errcheck 2> /dev/null` ]; then \
go get -u github.com/golang/lint/golint; \
fi
echo $(PACKAGES) | xargs -n 1 golint -set_exit_status
errcheck:
@if [ -z `which errcheck 2> /dev/null` ]; then \
go get -u github.com/kisielk/errcheck; \
fi
echo $(PACKAGES) | xargs errcheck -ignoretests
release: bump upload formula tweet
bump: setup
./scripts/bumpup.sh
upload: bump
./scripts/upload.sh
formula: upload
./scripts/formula.sh
tweet: upload
./scripts/tweet.sh
.PHONY: test-all test vet lint setup release bump upload formula tweet