We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fd8f6 commit f3c6b0cCopy full SHA for f3c6b0c
Makefile
@@ -0,0 +1,32 @@
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
0 commit comments