Skip to content

Instantly share code, notes, and snippets.

@ugtar
Last active August 15, 2016 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ugtar/4581856 to your computer and use it in GitHub Desktop.
Save ugtar/4581856 to your computer and use it in GitHub Desktop.
The Makefile I use to build my rst formatted text resume into both html and pdf versions.http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html
all: spell pdf html
pdf: resume.rst
@echo "Writing PDF"
rst2pdf resume.rst --stylesheets=styles/pdfstyle
html: resume.rst
@echo "Writing HTML"
rst2html --stylesheet-path=styles/htmlstyle.css resume.rst > resume.html
spell:
@echo "Checking Spelling"
aspell -c resume.rst
job:
@echo "If only it were that easy..."
clean:
rm resume.pdf
rm resume.html
.PHONY: spell pdf html clean job all
@ugtar
Copy link
Author

ugtar commented Jan 20, 2013

Usage:
$ make pdf
$ make html
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment