Skip to content

Commit

Permalink
feat(Makefile): Add release target to the Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Barcelona <[email protected]>
  • Loading branch information
tembleking committed Mar 3, 2020
1 parent 3720134 commit 9cca82f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ test-compile:
fi
go test -c $(TEST) $(TESTARGS)

release: fmtcheck
for kernel in linux windows darwin; do \
for dist in $$(go tool dist list | grep $$kernel); do \
GOOS=$$kernel; \
GOARCH=$$(echo $$dist | cut -d/ -f2); \
GOOS=$$GOOS GOARCH=$$GOARCH go build -o terraform-provider-sysdig-$$GOOS-$$GOARCH; \
done \
done

website:
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
Expand Down

0 comments on commit 9cca82f

Please sign in to comment.