Update readme and Makefile (#42)
* Update readme and Makefile * Fix missed shell command * fix: makefile nuances for darwin system Co-authored-by: Jeff Malnick <malnick@gmail.com>
This commit is contained in:
1 parent
af43c1d29c
commit
8260fd2beb
2 files changed
+24
-4
No files matched your search
@@ -1,4 +1,13 @@
|
||||
default: update-deps testacc
|
||||
GOOS=$(shell go env GOOS)
|
||||
GOARCH=$(shell go env GOARCH)
|
||||
INSTALL_PATH=~/.local/share/terraform/plugins/localhost/providers/boundary/0.0.1/linux_$(GOARCH)
|
||||
ifeq ($(GOOS), darwin)
|
||||
INSTALL_PATH=~/Library/Application\ Support/io.terraform/plugins/localhost/providers/boundary/0.0.1/darwin_$(GOARCH)
|
||||
endif
|
||||
ifeq ($(GOOS), "windows")
|
||||
INSTALL_PATH=%APPDATA%/HashiCorp/Terraform/plugins/localhost/providers/boundary/0.0.1/windows_$(GOARCH)
|
||||
endif
|
||||
|
||||
# Run acceptance tests
|
||||
.PHONY: testacc
|
||||
@@ -16,4 +25,5 @@ update-deps:
|
||||
GOPROXY=direct GOSUMDB=off go get -u
|
||||
|
||||
dev:
|
||||
go build -o ~/.terraform.d/plugins/terraform-provider-boundary main.go
|
||||
mkdir -p $(INSTALL_PATH)
|
||||
go build -o $(INSTALL_PATH)/terraform-provider-boundary main.go
|
||||
Reference in new issue
Block a user