-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (20 loc) · 702 Bytes
/
Makefile
File metadata and controls
25 lines (20 loc) · 702 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
# _ _ _ _
# ___ __ _| (_| |_ ___ _____ _| |_
# / __|/ _` | | | __/ _ \_____ / _ \ \/ | __|
# \__ | (_| | | | || __|_____| __/> <| |_
# |___/\__, |_|_|\__\___| \___/_/\_\\__|
# |_|
.PHONY: vet test
# pass these flags to linker to suppress missing symbol errors in intermediate artifacts
export CGO_LDFLAGS = -Wl,--unresolved-symbols=ignore-in-object-files
ifeq ($(shell uname -s),Darwin)
export CGO_LDFLAGS = -Wl,-undefined,dynamic_lookup
endif
# go build tags used by test, vet and more
TAGS = ""
# ========================================
# target for common golang tasks
vet:
@go vet -v -tags=$(TAGS)
test:
@go test -v -tags=$(TAGS)