]> git.immae.eu Git - github/fretlink/terraform-provider-mailgun.git/blobdiff - GNUmakefile
add index.html to ghpages
[github/fretlink/terraform-provider-mailgun.git] / GNUmakefile
index 0e2ce7338df24ab597b66117d508d566e2b78e74..e31a939a3b607e373c04eb8d6603ddb11bf663ec 100644 (file)
@@ -1,6 +1,7 @@
 TEST?=$$(go list ./... |grep -v 'vendor')
 GOFMT_FILES?=$$(find . -name '*.go' |grep -v vendor)
 PKG_NAME=mailgun
+WEBSITE_REPO=github.com/hashicorp/terraform-website
 
 default: build
 
@@ -24,6 +25,9 @@ vet:
                exit 1; \
        fi
 
+shellcheck:
+       shellcheck scripts/*
+
 fmt:
        gofmt -w $(GOFMT_FILES)
 
@@ -42,3 +46,21 @@ test-compile:
        fi
        go test -c $(TEST) $(TESTARGS)
 
+website-githubpages:
+       bash scripts/launch-website.sh
+website:
+ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
+       echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
+       git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
+endif
+       @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
+
+website-test:
+ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
+       echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
+       git clone https://$(WEBSITE_REPO) $(GOPATH)/src/$(WEBSITE_REPO)
+endif
+       @$(MAKE) -C $(GOPATH)/src/$(WEBSITE_REPO) website-provider-test PROVIDER_PATH=$(shell pwd) PROVIDER_NAME=$(PKG_NAME)
+
+.PHONY: build test testacc vet fmt fmtcheck errcheck test-compile website website-test website-githubpages
+