github.com/rothwerx/packer@v0.9.0/website/Makefile (about) 1 all: build 2 3 init: 4 bundle 5 6 dev: init 7 PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server 8 9 build: init 10 PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman build 11 12 format: 13 bundle exec htmlbeautifier -t 2 source/*.erb 14 bundle exec htmlbeautifier -t 2 source/layouts/*.erb 15 @pandoc -v > /dev/null || echo "pandoc must be installed in order to format markdown content" 16 pandoc -v > /dev/null && find . -iname "*.html.markdown" | xargs -I{} bash -c "pandoc -r markdown -w markdown --tab-stop=4 --atx-headers -s --columns=80 {} > {}.new"\; || true 17 pandoc -v > /dev/null && find . -iname "*.html.markdown" | xargs -I{} bash -c "mv {}.new {}"\; || true