README: Update Makefile and readme to ease local build

This commit is contained in:
Antoine R. Dumont (@ardumont) 2019-07-11 12:24:58 +02:00
parent 06d6363421
commit a4c86b4c4a
No known key found for this signature in database
GPG Key ID: 52E2E9840D10C3B8
2 changed files with 9 additions and 2 deletions

View File

@ -3,6 +3,13 @@
all: build
setup:
go get github.com/Telmate/proxmox-api-go
go get github.com/hashicorp/terraform/plugin
go get github.com/hashicorp/terraform/terraform
go get github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provider-proxmox
go get github.com/Telmate/terraform-provider-proxmox/cmd/terraform-provisioner-proxmox
build: clean
@echo " -> Building"
@cd cmd/terraform-provider-proxmox && go build

View File

@ -21,9 +21,9 @@ Note: this plugin is both a provider and provisioner in one, which is why it nee
Requires https://github.com/Telmate/proxmox-api-go
```
go get github.com/Telmate/proxmox-api-go
export GOPATH=`pwd`
make setup
make
make install
```