chore(conf): update conf and makefule

This commit is contained in:
bandl 2021-10-16 22:50:38 +08:00
parent ec8a126581
commit 3adeac539b
2 changed files with 16 additions and 6 deletions

3
.gitignore vendored
View File

@ -17,4 +17,5 @@
# build file
/bin/storage
/bin/storage
/bin/gateway

View File

@ -7,19 +7,28 @@ dcgen:
@python3 ./shell/proto.py
@python3 ./shell/make-struct.py
.PHONY : build
build:
.PHONY: build-storage
build-storage:
@cd storage && go build -o $(BASE_OUT)/storage
.PHONY: build-gateway
build-gateway:
@cd gateway && go build -o $(BASE_OUT)/gateway
.PHONY: install
install:
@make gen-middleware
@make build
@make build-storage
@make build-gateway
.PHONY: dev
dev:
.PHONY: storage
storage:
@./bin/storage storage
.PHONY: gateway
gateway:
@./bin/gateway gateway
.PHONY: gen-struct
gen-struct:
@python3 ./shell/make-struct.py