-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (23 loc) · 851 Bytes
/
Makefile
File metadata and controls
26 lines (23 loc) · 851 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
GOBIN = $(shell pwd)/build/bin
ROOT=$(shell pwd)
.PHONY:tools simapp example benchmark clean
all:tools simapp example benchmark
tools:tools.bin
simapp:
go build -o $(GOBIN)/simapp $(ROOT)/simapp
go build -o $(GOBIN)/simapp_client $(ROOT)/simapp/cmd/client
@echo "Done building."
@echo "Run \"$(GOBIN)/simapp\" to launch simapp."
@echo "Run \"$(GOBIN)/simapp_client\" to launch simapp_client."
example:
make -f example/Makefile GOBIN=$(ROOT)/example/build/bin ROOT=$(ROOT)/example
benchmark:
make -f x/benchmark/Makefile GOBIN=$(ROOT)/x/benchmark/build/bin ROOT=$(ROOT)/x/benchmark
%.bin:
go build -o $(GOBIN)/$* $(ROOT)/$*/cmd
@echo "Done building."
@echo "Run \"$(GOBIN)/$(*)\" to launch $(*)."
clean:
rm -rf $(ROOT)/build
make -f example/Makefile ROOT=$(ROOT)/example clean
make -f x/benchmark/Makefile ROOT=$(ROOT)/x/benchmark clean