Skip to content

Commit 9cca82f

Browse files
committed
feat(Makefile): Add release target to the Makefile
Signed-off-by: Federico Barcelona <[email protected]>
1 parent 3720134 commit 9cca82f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

GNUmakefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ test-compile:
4848
fi
4949
go test -c $(TEST) $(TESTARGS)
5050

51+
release: fmtcheck
52+
for kernel in linux windows darwin; do \
53+
for dist in $$(go tool dist list | grep $$kernel); do \
54+
GOOS=$$kernel; \
55+
GOARCH=$$(echo $$dist | cut -d/ -f2); \
56+
GOOS=$$GOOS GOARCH=$$GOARCH go build -o terraform-provider-sysdig-$$GOOS-$$GOARCH; \
57+
done \
58+
done
59+
5160
website:
5261
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
5362
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."

0 commit comments

Comments
 (0)