forked from p93542168/wheat-cache
23 lines
423 B
Makefile
23 lines
423 B
Makefile
BASE_PATH = $(shell pwd)
|
|
STORAGE_PATH = $(BASE_PATH)/storage
|
|
BASE_OUT = $(BASE_PATH)/bin
|
|
|
|
dcgen:
|
|
@python3 ./shell/proto.py
|
|
|
|
.PHONY : build
|
|
build:
|
|
@cd storage && go build -o $(BASE_OUT)/storage
|
|
|
|
.PHONY: install
|
|
install:
|
|
@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
|