-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (25 loc) · 830 Bytes
/
Makefile
File metadata and controls
38 lines (25 loc) · 830 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
ARBOR_VERSION?=0.0.0-rc0
export ARBOR_VERSION := $(ARBOR_VERSION)
export PATH := $(HOME)/go/bin/:$(PWD)/utils:$(PATH)
.PHONY: utils
all: build publish
build: test generate
go build -o arbor ./cmd/arbor/main.go
test:
go test -v ./...
test-lite:
go test ./...
utils:
go build -o ./utils/gen_visitors ./utils/
generate: utils
go generate ./...
ldflags: utils
./utils/gen_visitors -ldFlags
debug: test generate ldflags
go build -tags debug -ldflags '$(shell ARBOR_VERSION=$(ARBOR_VERSION) ./utils/gen_visitors -ldFlags)' -o arbor ./cmd/arbor/main.go
publish: test generate ldflags
go build -ldflags '$(shell ARBOR_VERSION=$(ARBOR_VERSION) ./utils/gen_visitors -ldFlags)' -o arbor ./cmd/arbor/main.go
delve: debug
dlv exec ./arbor build docs/example/example.ab
skip_test:
go build -o arbor ./cmd/arbor/main.go