-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 995 Bytes
/
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
SRC=./cmd/twrapper
DIST=./dist
dist: clean check
GOOS=darwin GOARCH=amd64 go build -o ${DIST}/twrapper-darwin-amd64 ${SRC}
GOOS=darwin GOARCH=arm64 go build -o ${DIST}/twrapper-darwin-arm64 ${SRC}
GOOS=linux GOARCH=386 go build -o ${DIST}/twrapper-linux-386 ${SRC}
GOOS=linux GOARCH=amd64 go build -o ${DIST}/twrapper-linux-amd64 ${SRC}
GOOS=linux GOARCH=arm go build -o ${DIST}/twrapper-linux-arm ${SRC}
GOOS=linux GOARCH=arm64 go build -o ${DIST}/twrapper-linux-arm64 ${SRC}
GOOS=windows GOARCH=386 go build -o ${DIST}/twrapper-windows-386 ${SRC}
GOOS=windows GOARCH=amd64 go build -o ${DIST}/twrapper-windows-amd64 ${SRC}
GOOS=windows GOARCH=arm go build -o ${DIST}/twrapper-windows-arm ${SRC}
clean :
rm -rf ${DIST}
run : test
go run ${SRC}
mods:
go mod download
check : test
staticcheck ./...
test : mods
go test -v ./...
test_quiet : mods
go test ./...
integration_tests:
go test --tags=integration_test ./...
vet:
go vet ./...