File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ NO_COLOR =\033[0m
2
+ OK_COLOR =\033[32;01m
3
+ ERROR_COLOR =\033[31;01m
4
+ WARN_COLOR =\033[33;01m
5
+ DEPS = $(go list -f '{{range .TestImports}}{{.}} {{end}}' ./... )
6
+
7
+ all : deps
8
+ @mkdir -p bin/
9
+ @echo " $( OK_COLOR) ==> Building$( NO_COLOR) "
10
+ go build
11
+
12
+ deps :
13
+ @echo " $( OK_COLOR) ==> Installing dependencies$( NO_COLOR) "
14
+ @go get -d -v ./...
15
+ @echo $(DEPS ) | xargs -n1 go get -d
16
+
17
+ updatedeps :
18
+ @echo " $( OK_COLOR) ==> Updating all dependencies$( NO_COLOR) "
19
+ @go get -d -v -u ./...
20
+ @echo $(DEPS ) | xargs -n1 go get -d -u
21
+
22
+ clean :
23
+ @rm -rf bin/ local/ pkg/ src/ website/.sass-cache website/build
24
+
25
+ format :
26
+ go fmt ./...
27
+
28
+ test : deps
29
+ @echo " $( OK_COLOR) ==> Testing Packer...$( NO_COLOR) "
30
+ go test ./...
31
+
32
+ .PHONY : all clean deps format test updatedeps
You can’t perform that action at this time.
0 commit comments