forked from p53841790/wheat-cache
38 lines
675 B
Makefile
38 lines
675 B
Makefile
BASE_PATH = $(shell pwd)
|
|
STORAGE_PATH = $(BASE_PATH)/storage
|
|
BASE_OUT = $(BASE_PATH)/bin
|
|
|
|
dcgen:
|
|
@python3 ./shell/gen_protobuf.py
|
|
@python3 ./shell/proto.py
|
|
@python3 ./shell/make-struct.py
|
|
|
|
.PHONY : build
|
|
build:
|
|
@cd storage && go build -o $(BASE_OUT)/storage
|
|
|
|
.PHONY: install
|
|
install:
|
|
@make gen-middleware
|
|
@make build
|
|
|
|
.PHONY: dev
|
|
dev:
|
|
@./bin/storage storage
|
|
|
|
.PHONY: gen-struct
|
|
gen-struct:
|
|
@python3 ./shell/make-struct.py
|
|
|
|
.PHONY: gen-protobuf
|
|
gen-protobuf:
|
|
@python3 ./shell/gen_protobuf.py
|
|
|
|
.PHONY: gen-middleware
|
|
gen-middleware:
|
|
@python3 ./shell/gen_middleware.py
|
|
|
|
.PHONY: init-conf
|
|
init-conf:
|
|
@python3 ./shell/init_conf.py
|