diff --git a/Makefile b/Makefile index c8dd9100f..866d5cd83 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,12 @@ -STEAMPIPE_INSTALL_DIR?=~/.steampipe +STEAMPIPE_INSTALL_DIR ?= ~/.steampipe + +# Determine the operating system +OS := $(shell uname) + +# Check if the OS is Mac OS/Darwin +ifeq ($(OS),Darwin) + BUILD_TAGS = netgo +endif install: - go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/aws@latest/steampipe-plugin-aws.plugin *.go + go build -o $(STEAMPIPE_INSTALL_DIR)/plugins/hub.steampipe.io/plugins/turbot/aws@latest/steampipe-plugin-aws.plugin -tags "$(BUILD_TAGS)" *.go \ No newline at end of file