wheat-cache/makefile

29 lines
507 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 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