From 3adeac539b3e2dccb079499a3650ac7de2cc0fea Mon Sep 17 00:00:00 2001 From: bandl <1658002533@qq.com> Date: Sat, 16 Oct 2021 22:50:38 +0800 Subject: [PATCH] chore(conf): update conf and makefule --- .gitignore | 3 ++- makefile | 19 ++++++++++++++----- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6c5c7d6..d66f960 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ # build file -/bin/storage \ No newline at end of file +/bin/storage +/bin/gateway \ No newline at end of file diff --git a/makefile b/makefile index 7558082..e790a1f 100644 --- a/makefile +++ b/makefile @@ -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