forked from kyma-incubator/terraform-provider-kind
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile
38 lines (30 loc) · 745 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
31
32
33
34
35
36
37
38
.PHONY: build
build:
./before-commit.sh
.PHONY: ci-build
ci-build:
./before-commit.sh ci
.PHONY: ci-pr
ci-pr: build
.PHONY: ci-master
ci-master: build
.PHONY: ci-release
ci-release: build
.PHONY: clean
clean:
rm -rf bin
ci-testacc:
./before-commit.sh ci testacc
testacc:
./before-commit.sh testacc
install: GOOS=$(shell go env GOOS)
install: GOARCH=$(shell go env GOARCH)
ifeq ($(OS),Windows_NT) # is Windows_NT on XP, 2000, 7, Vista, 10...
install: DESTINATION=$(APPDATA)/terraform.d/plugins/$(GOOS)_$(GOARCH)
else
install: DESTINATION=$(HOME)/.terraform.d/plugins/$(GOOS)_$(GOARCH)
endif
install: build
@echo "==> Installing plugin to $(DESTINATION)"
@mkdir -p $(DESTINATION)
@cp ./bin/terraform-provider-kind $(DESTINATION)