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