From 229266a83afe5dcc9d3aad08e3f894493ecc127a Mon Sep 17 00:00:00 2001 From: devad Date: Fri, 3 Mar 2023 10:36:47 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20Makefile=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: devad --- Makefile | 18 ++++++------------ adaptor/PCM-CORE/api/slurmcore.go | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/Makefile b/Makefile index 8bcb7430..51fcc394 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,9 @@ -gateway: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-gateway gateway/main.go +AC-grpc: + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-ac adaptor/PCM-HPC/PCM-AC/rpc/hpcac.go -pod: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-pod adaptor/pcm_pod/main.go +PCM-core: + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-core adaptor/PCM-CORE/api/slurmcore.go -vm: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-vm adaptor/pcm_vm/main.go +build: AC-grpc PCM-core -slurm: - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pcm-slurm adaptor/pcm_slurm/main.go - -build: gateway pod vm slurm - -.PHONY: gateway pod vm slurm build \ No newline at end of file +.PHONY: AC-grpc PCM-core build \ No newline at end of file diff --git a/adaptor/PCM-CORE/api/slurmcore.go b/adaptor/PCM-CORE/api/slurmcore.go index 998aada9..601fef03 100644 --- a/adaptor/PCM-CORE/api/slurmcore.go +++ b/adaptor/PCM-CORE/api/slurmcore.go @@ -12,7 +12,7 @@ import ( "github.com/zeromicro/go-zero/rest" ) -var configFile = flag.String("f", "etc/slurmcore-api.yaml", "the config file") +var configFile = flag.String("f", "adaptor/PCM-CORE/api/etc/slurmcore-api.yaml", "the config file") func main() { flag.Parse()