-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 806 Bytes
/
Makefile
File metadata and controls
34 lines (26 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
HOSTNAME=registry.terraform.io
NAMESPACE=constellix
NAME=constellix-multicdn
VERSION := $(shell cat VERSION)
OS_ARCH=darwin_arm64
default: install
.PHONY: build
build:
go build -o terraform-provider-${NAME}_v${VERSION}
.PHONY: install
install: build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
cp terraform-provider-${NAME}_v${VERSION} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}/terraform-provider-${NAME}_v${VERSION}
.PHONY: test
test:
go test -v ./...
.PHONY: testacc
testacc:
TF_ACC=1 go test -v ./provider/... -timeout 120m
.PHONY: clean
clean:
rm -f terraform-provider-${NAME}_v${VERSION}
.PHONY: installclean
installclean: install
rm -rf examples/basic/.terraform
rm -rf examples/basic/.terraform.lock.hcl