File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ TEST?=$$(go list ./... |grep -v 'vendor')
22GOFMT_FILES? =$$(find . -name '*.go' |grep -v vendor )
33WEBSITE_REPO =github.com/hashicorp/terraform-website
44PKG_NAME =sumologic
5+ PLUGIN_DIR =~/.terraform.d/plugins
56
67default : build
78
@@ -12,6 +13,13 @@ tools:
1213build : 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+
1523errcheck :
1624 @sh -c " '$( CURDIR) /scripts/errcheck.sh'"
1725
@@ -60,4 +68,4 @@ ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
6068endif
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
You can’t perform that action at this time.
0 commit comments