summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-02-13 13:18:33 -0700
committerAaron Ball <nullspoon@iohq.net>2016-02-13 13:18:33 -0700
commit73140dd3359c1bcdea01baa0bf918747d936a1e6 (patch)
tree5f7dc0de414e0e8509a2a6358577b5fe976f3049 /Makefile
parenta4ce5272a1f611390cd0aba54eef040ed243e138 (diff)
downloadresume-73140dd3359c1bcdea01baa0bf918747d936a1e6.tar.gz
resume-73140dd3359c1bcdea01baa0bf918747d936a1e6.tar.xz
Added Makefile
Apparently I never checked this in
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e3ff288
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,33 @@
+doc=resume.asciidoc
+html=resume.html
+pdf=resume.pdf
+
+#safe = --safe
+
+.SILENT : help pdf
+
+all:
+ asciidoc $(safe) -b html5 -a linkcss -a stylesdir=${PWD} -o $(html) $(doc)
+
+xhtml:
+ asciidoc $(safe) -b xhtml11 -a linkcss -a stylesdir=${PWD} -o $(html) $(doc)
+
+embed:
+ asciidoc $(safe) -b xhtml11 -a stylesdir=${PWD} -o $(html) $(doc)
+
+odt:
+ asciidoc $(safe) -b odt -a stylesdir=${PWD} -o $(html) $(doc)
+
+pdf:
+ # Generate html version
+ make
+ wkhtmltopdf -s Letter -B .5in -T .5in -R .5in -L .5in --minimum-font-size 16 $(html) $(pdf)
+ rm $(html)
+
+help:
+ echo -e '\n'\
+ 'Make options:\n' \
+ 'all: Makes html5 document\n' \
+ 'pdf: Makes pdf document\n' \
+ 'xhtml: Make xhtml document\n' \
+ 'embed: Make html document with embedded styles\n'

Generated by cgit