github.com/rahart/packer@v0.12.2-0.20161229105310-282bb6ad370f/website/Makefile (about)

     1  all: build
     2  
     3  init:
     4  	bundle
     5  
     6  docker-dev:
     7  	docker run -it --expose 4567 -P -v "$PWD":/usr/src/app -w /usr/src/app ruby:2.3.1 \
     8  	  bash -c "apt-get update && apt-get -qy install curl git libgmp3-dev nodejs && \
     9  	  gem install bundler && make dev"
    10  
    11  dev: init
    12  	PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman server
    13  
    14  build: init
    15  	PACKER_DISABLE_DOWNLOAD_FETCH=true PACKER_VERSION=1.0 bundle exec middleman build
    16  
    17  format:
    18  	bundle exec htmlbeautifier -t 2 source/*.erb
    19  	bundle exec htmlbeautifier -t 2 source/layouts/*.erb
    20  	@pandoc -v > /dev/null || echo "pandoc must be installed in order to format markdown content"
    21  	pandoc -v > /dev/null && find . -iname "*.html.md" | xargs -I{} bash -c "pandoc -r markdown -w markdown --tab-stop=4 --atx-headers -s --columns=80 {} > {}.new"\; || true
    22  	pandoc -v > /dev/null && find . -iname "*.html.md" | xargs -I{} bash -c "mv {}.new {}"\; || true