From 0f2c531f25925eb50c3969dd972866cadd272b1c Mon Sep 17 00:00:00 2001 From: Jackson West Date: Fri, 9 Dec 2022 12:17:06 -0600 Subject: [PATCH] Passes make targets comma seperated (#1532) --- Makefile | 2 +- cmd/main_postsubmit.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fc21f04ee3..64d979107d 100644 --- a/Makefile +++ b/Makefile @@ -51,7 +51,7 @@ build: postsubmit-build: setup go vet cmd/main_postsubmit.go go run cmd/main_postsubmit.go \ - --target="release clean clean-go-cache" \ + --target=release,clean,clean-go-cache \ --release-branch=${RELEASE_BRANCH} \ --release=${RELEASE} \ --region=${AWS_REGION} \ diff --git a/cmd/main_postsubmit.go b/cmd/main_postsubmit.go index 5ccf60f5ee..774f33470f 100644 --- a/cmd/main_postsubmit.go +++ b/cmd/main_postsubmit.go @@ -34,8 +34,9 @@ func (c *Command) buildProject(projectPath string) error { commandArgs := []string{ "-C", filepath.Join(c.gitRoot, "projects", projectPath), - c.makeTarget, } + allMakeTargets := strings.Split(c.makeTarget, ",") + commandArgs = append(commandArgs, allMakeTargets...) commandArgs = append(commandArgs, c.makeArgs...) cmd := exec.Command("make", commandArgs...)