Skip to content

Commit

Permalink
introduce make file for new command targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Grant Gongaware committed Jan 7, 2019
1 parent a1f744d commit a6e3bd7
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

.PHONY: build clean

all: build

build: clean
@echo " -> Building"
@cd cmd/terraform-provider-proxmox && go build
@echo "Built terraform-provider-proxmox"
@cd cmd/terraform-provisioner-proxmox && go build
@echo "Built terraform-provisioner-proxmox"

clean:
@git clean -f -d -X
1 change: 1 addition & 0 deletions cmd/terraform-provider-proxmox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform-provider-proxmox
3 changes: 0 additions & 3 deletions cmd/terraform-provider-proxmox/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ func main() {
ProviderFunc: func() terraform.ResourceProvider {
return proxmox.Provider()
},
ProvisionerFunc: func() terraform.ResourceProvisioner {
return proxmox.Provisioner()
},
})
}
1 change: 1 addition & 0 deletions cmd/terraform-provisioner-proxmox/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
terraform-provisioner-proxmox
3 changes: 0 additions & 3 deletions cmd/terraform-provisioner-proxmox/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ import (

func main() {
plugin.Serve(&plugin.ServeOpts{
ProviderFunc: func() terraform.ResourceProvider {
return proxmox.Provider()
},
ProvisionerFunc: func() terraform.ResourceProvisioner {
return proxmox.Provisioner()
},
Expand Down

0 comments on commit a6e3bd7

Please sign in to comment.