Skip to content

Instantly share code, notes, and snippets.

@davemenninger
Created July 11, 2014 13:28
Show Gist options
  • Save davemenninger/0fe6561e16c4e0d45acd to your computer and use it in GitHub Desktop.
Save davemenninger/0fe6561e16c4e0d45acd to your computer and use it in GitHub Desktop.
make a directory of asciidoc files into html and pdf and deploy to somewhere with a script
HTML = $(patsubst %.asciidoc,%.html,$(shell find . -name '*.asciidoc' ))
PDF = $(patsubst %.html,%.pdf,$(shell find . -name '*.html' ))
all: $(HTML) $(PDF)
%.html: %.asciidoc
asciidoc -a toc $(<F)
%.pdf: %.html
xhtml2pdf $(<F)
deploy:
./deploy_html_to_somewhere.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment