-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (41 loc) · 1.11 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
# generic build target when the OS doesn't need to be specified
build: clean
go build -o bin/generic
# Linux-specific build target
build-linux: clean-linux
go build -o bin/linux/
# OSX-specific build target
build-osx: clean-osx
go build -o bin/osx/
# Windows-specific build target
build-win: clean-win
go build -o bin/windows/
# generic clean target when the OS doesn't need to be specified
clean:
rm -rf bin/generic
mkdir -p bin/generic
# Linux-specific clean target
clean-linux:
rm -rf bin/linux
mkdir -p bin/linux
# OSX-specific clean target
clean-osx:
rm -rf bin/osx
mkdir -p bin/osx
# Windows-specific clean target
clean-win:
rm -rf bin/windows
mkdir -p bin/windows
# Run all tests
test:
go test ./...
# Run all tests and ignore any cached results
test-fresh:
go test -count=1 ./...
# Run all tests with increased verbosity
test-verbose:
go test -v ./...
# Run all tests with increased verbosity and ignore any cached results
test-verbose-fresh:
go test -v -count=1 ./...
.PHONY: build build-linux build-osx build-win clean clean-linux clean-osx clean-win test test-fresh test-verbose test-verbose-fresh