-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
22 lines (17 loc) · 794 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
host_name = battlestation
namespace = b2cextensions
type = main
version = 0.0.1
target = linux_amd64
all: clean build install
tftest:
cd terraform && TF_LOG=trace terraform init -plugin-dir=/home/nrexception/.terraform.d/plugins
install:
mkdir -p ~/.terraform.d/plugins/terraform.local/local/bcextensions/0.0.1/linux_amd64
cp ./bin/terraform-provider-bcextensions ~/.terraform.d/plugins/terraform.local/local/bcextensions/0.0.1/linux_amd64/terraform-provider-bcextensions
build:
env GOOS=linux GOARCH=amd64 go build -o "./bin/terraform-provider-bcextensions"
env GOOS=windows GOARCH=amd64 go build -o "./bin/terraform-provider-bcextensions.exe"
clean:
rm -f ./bin/*
rm -f ~/.terraform.d/plugins/terraform.local/local/bcextensions/0.0.1/linux_amd64/terraform-provider-bcextensions