2021-08-31 23:30:14 +08:00
|
|
|
BASE_PATH = $(shell pwd)
|
|
|
|
STORAGE_PATH = $(BASE_PATH)/storage
|
|
|
|
BASE_OUT = $(BASE_PATH)/bin
|
|
|
|
|
|
|
|
dcgen:
|
2021-09-05 17:07:34 +08:00
|
|
|
@python3 ./shell/proto.py
|
2021-08-31 23:30:14 +08:00
|
|
|
|
|
|
|
.PHONY : build
|
|
|
|
build:
|
2021-09-05 17:07:34 +08:00
|
|
|
@cd storage && go build -o $(BASE_OUT)/storage
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2021-09-05 21:27:08 +08:00
|
|
|
@make build
|
|
|
|
|
|
|
|
.PHONY: dev
|
|
|
|
dev:
|
2021-09-16 20:43:03 +08:00
|
|
|
@./bin/storage storage
|
|
|
|
|
2021-09-20 18:44:56 +08:00
|
|
|
.PHONY: gen-struct-const
|
|
|
|
gen-struct-const:
|
2021-09-16 20:43:03 +08:00
|
|
|
@python3 ./shell/make-struct.py
|
2021-09-19 10:37:30 +08:00
|
|
|
|
|
|
|
.PHONY: gen-protobuf
|
|
|
|
gen-protobuf:
|
2021-09-20 16:36:47 +08:00
|
|
|
@python3 ./shell/gen_protobuf.py
|
|
|
|
|
|
|
|
.PHONY: gen-structure-interface
|
|
|
|
gen-structure-interface:
|
|
|
|
@python3 ./shell/gen_struct_interface.py
|