diff options
author | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-07-04 13:31:58 +0200 |
---|---|---|
committer | Alexandre Garand <alexandre.garand@fretlink.com> | 2019-07-04 14:25:40 +0200 |
commit | a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05 (patch) | |
tree | 2841fe577e2927dc4b0e9df04c7535c9fb8d31de /GNUmakefile | |
parent | dd1186fd91ca40f876130a596f53ebef14cf8815 (diff) | |
download | terraform-provider-mailgun-a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05.tar.gz terraform-provider-mailgun-a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05.tar.zst terraform-provider-mailgun-a1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05.zip |
add doc
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 0e2ce73..f5f0c29 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
@@ -1,6 +1,7 @@ | |||
1 | TEST?=$$(go list ./... |grep -v 'vendor') | 1 | TEST?=$$(go list ./... |grep -v 'vendor') |
2 | GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) | 2 | GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) |
3 | PKG_NAME=mailgun | 3 | PKG_NAME=mailgun |
4 | WEBSITE_REPO=github.com/hashicorp/terraform-website | ||
4 | 5 | ||
5 | default: build | 6 | default: build |
6 | 7 | ||
@@ -42,3 +43,19 @@ test-compile: | |||
42 | fi | 43 | fi |
43 | go test -c $(TEST) $(TESTARGS) | 44 | go test -c $(TEST) $(TESTARGS) |
44 | 45 | ||
46 | website: | ||
47 | ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) | ||
48 | echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." | ||
49 | git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO) | ||
50 | endif | ||
51 | @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) | ||
52 | |||
53 | website-test: | ||
54 | ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO))) | ||
55 | echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..." | ||
56 | git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO) | ||
57 | endif | ||
58 | @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME) | ||
59 | |||
60 | .PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test | ||
61 | |||