refactor: Makefile更新

Signed-off-by: devad <cossjie@foxmail.com>
This commit is contained in:
devad 2023-03-03 10:36:47 +08:00
parent 9248eff6e5
commit 229266a83a
2 changed files with 7 additions and 13 deletions

View File

@ -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
.PHONY: AC-grpc PCM-core build

View File

@ -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()