forked from cloudwan/gohan
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 733 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 733 Bytes
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
NO_COLOR=\033[0m
OK_COLOR=\033[32;01m
ERROR_COLOR=\033[31;01m
WARN_COLOR=\033[33;01m
all: gen lint build test
deps:
@echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)"
./tools/dev_setup.sh
format:
@echo "$(OK_COLOR)==> Formatting$(NO_COLOR)"
govendor fmt +local
gen:
@echo "$(OK_COLOR)==> Generating files$(NO_COLOR)"
go-bindata -pkg util -o util/bindata.go \
etc/schema/... \
etc/extensions/... \
etc/templates/... \
public/...
test:
@echo "$(OK_COLOR)==> Testing$(NO_COLOR)"
./run_test.sh
lint:
@echo "$(OK_COLOR)==> Linting$(NO_COLOR)"
./tools/lint.sh
build: deps
@echo "$(OK_COLOR)==> Building$(NO_COLOR)"
./tools/build.sh
install:
@echo "$(OK_COLOR)==> Installing$(NO_COLOR)"
./tools/install.sh