forked from drdaeman/terraform-provider-aws-extras
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (22 loc) · 748 Bytes
/
Makefile
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
.PHONY: default build install uninstall snapshot publish clean
NAME = aws-extras
VERSION = 0.0.0
HOSTNAME = registry.terraform.io
NAMESPACE = drdaeman
OS_ARCH = darwin_amd64
BINARY = terraform-provider-${NAME}
default: install
build:
go build -trimpath -o ${BINARY}
install: build
mkdir -p ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
cp ${BINARY} ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}/${VERSION}/${OS_ARCH}
uninstall:
rm -r ~/.terraform.d/plugins/${HOSTNAME}/${NAMESPACE}/${NAME}
snapshot:
goreleaser release --rm-dist --snapshot --skip-publish --skip-sign
publish:
goreleaser release --rm-dist
clean:
test -e ${BINARY} && rm ${BINARY} || true
test -e dist && rm -rf dist || true