summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-11-09 11:47:19 -0700
committerAaron Ball <nullspoon@iohq.net>2016-11-09 11:47:19 -0700
commit6cdcce7d28e8140404502b72a7dcab2e729afb40 (patch)
tree44db6af9ee3b347da0498247dc508bf95af079a0
parentee98939031245c43304f8c7e7641a0e17a18f1f0 (diff)
downloadresume-6cdcce7d28e8140404502b72a7dcab2e729afb40.tar.gz
resume-6cdcce7d28e8140404502b72a7dcab2e729afb40.tar.xz
Makefile: Added setup process to most targets
The new setup process/target creates the outdir if it doesn't yet exist.
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c7fbc0b..34fc6fa 100644
--- a/Makefile
+++ b/Makefile
@@ -10,18 +10,22 @@ html=$(outdir)/resume.html
.SILENT : help pdf odf
all:
+ make setup
make html5
clean:
rm -rv $(outdir)/*
html5:
+ make setup
asciidoc $(safe) -b html5 -a linkcss -a stylesdir=${PWD} -o $(html) $(src)
xhtml:
+ make setup
asciidoc $(safe) -b xhtml11 -a linkcss -a stylesdir=${PWD} -o $(html) $(src)
embed:
+ make setup
asciidoc $(safe) -b xhtml11 -a stylesdir=${PWD} -o $(html) $(src)
odf:
@@ -37,6 +41,11 @@ pdf:
# wkhtmltopdf -s Letter -B .5in -T .5in -R .5in -L .5in --minimum-font-size 16 $(html) $(pdf)
# rm $(html)
+
+setup:
+ if [ ! -d $(outdir) ]; then mkdir $(outdir); fi
+
+
help:
echo -e '\n'\
'Make options:\n' \

Generated by cgit