Browse Source

refactor: Makefile更新

Signed-off-by: devad <cossjie@foxmail.com>
pull/9/head
devad 2 years ago
parent
commit
229266a83a
2 changed files with 7 additions and 13 deletions
  1. +6
    -12
      Makefile
  2. +1
    -1
      adaptor/PCM-CORE/api/slurmcore.go

+ 6
- 12
Makefile 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

+ 1
- 1
adaptor/PCM-CORE/api/slurmcore.go 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()


Loading…
Cancel
Save