Last active
August 15, 2016 20:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage:
$ make pdf
$ make html
...