-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
36 lines (27 loc) · 572 Bytes
/
makefile
File metadata and controls
36 lines (27 loc) · 572 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
# Set Compiler to either of: go, gocolor OR gopretty
MODE=gopretty
# Compilers
GO=go
GOCOLOR=~/go/bin/colorgo
GOPRETTY="$(HOME)/go/bin/gofilter"
# Sources
CMD_CLI=./cmd
# Outputs
BIN=~/go/bin
BIN_OUT=$(BIN)/goveelux
ifeq ($(MODE),gocolor)
GO=$(GOCOLOR)
endif
all: govee
govee:
ifeq ($(MODE),gopretty)
$(GO) build -v -o $(BIN_OUT) -tags=none $(CMD_CLI)/*.go 2>&1 | $(GOPRETTY) -color -width 75 -version
else
$(GO) build -v -o $(BIN_OUT) -tags=none $(CMD_CLI)/*.go
endif
update:
go get -u all
testall:
go test ./...
testfull:
go test -v test/*_test.go