-
-
Notifications
You must be signed in to change notification settings - Fork 144
/
Makefile
29 lines (20 loc) · 616 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
.PHONY: generate test clobber example examples
GOEXE ?= go
EXAMPLES := $(wildcard macos/_examples/*)
export CGO_LDFLAGS="-Wl,-no_warn_duplicate_libraries"
generate:
$(GOEXE) generate ./...
test:
$(GOEXE) test ./...
clobber:
$(GOEXE) run ./generate/tools/clobbergen.go ./macos
example:
$(GOEXE) run ./macos/_examples/helloworld/main.go
examples: _local/bin
@for dir in $(EXAMPLES); do \
$(GOEXE) build -o ./_local/bin/$$(basename $$dir) ./$$dir; \
done
_local/bin:
mkdir -p _local/bin
generate/symbols.zip:
cd generate && wget https://github.com/mactypes/symbolsdb/releases/download/1.1/symbols.zip