aboutsummaryrefslogtreecommitdiffhomepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authoralexandreFre <51956137+alexandreFre@users.noreply.github.com>2019-07-04 14:32:15 +0200
committerGitHub <noreply@github.com>2019-07-04 14:32:15 +0200
commit80e82d1365343acdd54bca9e1c94dfe03b913600 (patch)
treea87cc028eda54bd95b248296e331c71a4ad74241 /GNUmakefile
parent4509938b5f377136215645157376bf75e3980418 (diff)
parenta1f9b9a1c1a80ee4db8de66fe1b771fe8e28cd05 (diff)
downloadterraform-provider-mailgun-80e82d1365343acdd54bca9e1c94dfe03b913600.tar.gz
terraform-provider-mailgun-80e82d1365343acdd54bca9e1c94dfe03b913600.tar.zst
terraform-provider-mailgun-80e82d1365343acdd54bca9e1c94dfe03b913600.zip
Merge pull request #6 from alexandreFre/add_doc
Add doc
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile17
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 @@
1TEST?=$$(go list ./... |grep -v 'vendor') 1TEST?=$$(go list ./... |grep -v 'vendor')
2GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor) 2GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
3PKG_NAME=mailgun 3PKG_NAME=mailgun
4WEBSITE_REPO=github.com/hashicorp/terraform-website
4 5
5default: build 6default: 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
46website:
47ifeq (,$(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)
50endif
51 @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
52
53website-test:
54ifeq (,$(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)
57endif
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