From 4c755c2d1715d31155828809c7b5bcc67ffb10d3 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Tue, 4 Apr 2017 12:33:32 -0400 Subject: [PATCH] Add Makefile target for compiling entire website --- website/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/Makefile b/website/Makefile index 0e83eb946c..7a21ecca93 100644 --- a/website/Makefile +++ b/website/Makefile @@ -1,5 +1,15 @@ VERSION?="0.3.22" +build: + @echo "==> Starting build in Docker..." + @docker run \ + --interactive \ + --rm \ + --tty \ + --volume "$(shell pwd):/website" \ + hashicorp/middleman-hashicorp:${VERSION} \ + bundle exec middleman build --verbose --clean + website: @echo "==> Starting website in Docker..." @docker run \ @@ -11,4 +21,4 @@ website: --volume "$(shell pwd):/website" \ hashicorp/middleman-hashicorp:${VERSION} -.PHONY: website +.PHONY: build website