Add Makefile target for compiling entire website

This commit is contained in:
Seth Vargo 2017-04-04 12:33:32 -04:00
parent b0bb01d5da
commit 018d167bca
No known key found for this signature in database
GPG Key ID: C921994F9C27E0FF
1 changed files with 11 additions and 1 deletions

View File

@ -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