Skip to content

Commit

Permalink
Passes make targets comma seperated (aws#1532)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxesn authored Dec 9, 2022
1 parent ecfa4d1 commit 0f2c531
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand Down
3 changes: 2 additions & 1 deletion cmd/main_postsubmit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
Expand Down

0 comments on commit 0f2c531

Please sign in to comment.