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 # build file
/bin/storage /bin/storage
/bin/gateway

View File

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