wheat-cache/makefile

23 lines
423 B
Makefile
Raw Normal View History

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
.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:
@./bin/storage storage
.PHONY: gen-struct
gen-struct:
@python3 ./shell/make-struct.py
@gofmt -w $(BASE_PATH)/structure/generate/structure.gen.go