File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,6 @@ DOC_FILES := \
33
33
34
34
default : docs
35
35
36
- .PHONY : docs
37
36
docs : $(OUTPUT_DIRNAME ) /$(DOC_FILENAME ) .pdf $(OUTPUT_DIRNAME ) /$(DOC_FILENAME ) .html
38
37
39
38
ifeq "$(strip $(PANDOC ) ) " ''
@@ -56,8 +55,6 @@ HOST_GOLANG_VERSION = $(shell go version | cut -d ' ' -f3 | cut -c 3-)
56
55
# this variable is used like a function. First arg is the minimum version, Second arg is the version to be checked.
57
56
ALLOWED_GO_VERSION = $(shell test '$(shell /bin/echo -e "$(1 ) \n$(2 ) " | sort -V | head -n1) ' = '$(1 ) ' && echo 'true')
58
57
59
- .PHONY : test .govet .golint .gitvalidation
60
-
61
58
test : .govet .golint .gitvalidation
62
59
63
60
.govet :
80
77
git-validation -v -run DCO,short-subject,dangling-whitespace -range $(EPOCH_TEST_COMMIT)..HEAD
81
78
endif
82
79
83
-
84
- .PHONY : install.tools
85
80
install.tools : .install.golint .install.gitvalidation
86
81
87
82
# golint does not even build for <go1.6
93
88
.install.gitvalidation :
94
89
go get -u github.com/vbatts/git-validation
95
90
96
-
97
- .PHONY : clean
98
91
clean :
99
92
rm -rf $(OUTPUT_DIRNAME ) * ~
100
93
rm -f version.md
Original file line number Diff line number Diff line change 1
1
GOOD_TESTS = $(wildcard test/good/* .json)
2
2
BAD_TESTS = $(wildcard test/bad/* .json)
3
3
4
- .PHONY : default
5
4
default : validate
6
5
7
- .PHONY : help
8
6
help :
9
7
@echo " Usage: make [target]"
10
8
@echo
11
9
@echo " * 'fmt' - format the json with indentation"
12
10
@echo " * 'help' - show this help information"
13
11
@echo " * 'validate' - build the validation tool"
14
12
15
- .PHONY : fmt
16
13
fmt :
17
14
find . -name ' *.json' -exec bash -c ' jq --indent 4 -M . {} > xx && mv xx {} || echo "skipping invalid {}"' \;
18
15
@@ -21,7 +18,6 @@ validate: validate.go
21
18
go get -d ./...
22
19
go build ./validate.go
23
20
24
- .PHONY : test
25
21
test : validate $(TESTS )
26
22
for TYPE in $$ (ls test); \
27
23
do \
@@ -50,6 +46,5 @@ test: validate $(TESTS)
50
46
done ; \
51
47
done
52
48
53
- .PHONY : clean
54
49
clean :
55
50
rm -f validate
You can’t perform that action at this time.
0 commit comments