Skip to content

Commit 01984fb

Browse files
authored
Merge pull request #121 from SumoLogic/ssain-add-install-to-makefile
adding back install
2 parents a4d0b8a + c7a8e9d commit 01984fb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

GNUmakefile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ TEST?=$$(go list ./... |grep -v 'vendor')
22
GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
33
WEBSITE_REPO=github.com/hashicorp/terraform-website
44
PKG_NAME=sumologic
5+
PLUGIN_DIR=~/.terraform.d/plugins
56

67
default: build
78

@@ -12,6 +13,13 @@ tools:
1213
build: fmtcheck
1314
go install
1415

16+
install: fmtcheck
17+
mkdir -vp $(PLUGIN_DIR)
18+
go build -o $(PLUGIN_DIR)/terraform-provider-sumologic
19+
20+
uninstall:
21+
@rm -vf $(PLUGIN_DIR)/terraform-provider-sumologic
22+
1523
errcheck:
1624
@sh -c "'$(CURDIR)/scripts/errcheck.sh'"
1725

@@ -60,4 +68,4 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
6068
endif
6169
@$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
6270

63-
.PHONY: build test testacc vet fmt fmtcheck errcheck lint tools test-compile website website-lint website-test
71+
.PHONY: build install uninstall test testacc vet fmt fmtcheck errcheck lint tools test-compile website website-lint website-test

0 commit comments

Comments
 (0)