blob: e7a48336abb1e5c6e5a3091f6a6c5ec83ee0e0b3 (
plain)
1 src=resume.adoc
2
3 outdir=out
4 style=style.css
5 pdf=$(outdir)/resume.pdf
6 odf=$(outdir)/resume.odf
7 html=$(outdir)/resume.html
8
9 #safe = --safe
10
11 .SILENT : help pdf odf
12
13 all:
14 make setup
15 make html5
16
17 clean:
18 rm -rv $(outdir)/*
19
20 html5:
21 make setup
22 asciidoctor $(safe) -b html5 -a linkcss -a stylesheet=$(style) -o $(html) $(src)
23
24 xhtml:
25 make setup
26 asciidoctor $(safe) -b xhtml11 -a linkcss -a stylesheet=$(style) -o $(html) $(src)
27
28 embed:
29 make setup
30 asciidoctor $(safe) -b xhtml11 -a stylesdir=$(style) -o $(html) $(src)
31
32 odf:
33 echo "ERROR: Not implemented"
34 exit 1
35 #asciidoc $(safe) -b odt -a stylesdir=${PWD} -o $(odf) $(src)
36
37 pdf:
38 echo "ERROR: Not implemented"
39 exit 1
40 # Generate html version
41 # make
42 # wkhtmltopdf -s Letter -B .5in -T .5in -R .5in -L .5in --minimum-font-size 16 $(html) $(pdf)
43 # rm $(html)
44
45
46 setup:
47 if [ ! -d $(outdir) ]; then mkdir $(outdir); fi
48
49
50 help:
51 echo -e '\n'\
52 'Make options:\n' \
53 'all: Makes html5 document\n' \
54 'pdf: Makes pdf document\n' \
55 'odf: Makes pdf document\n' \
56 'xhtml: Make xhtml document\n' \
57 'embed: Make html document with embedded styles (more portable than xhtml)\n'
|