diff options
author | Aaron Ball <nullspoon@iohq.net> | 2016-11-09 11:47:19 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2016-11-09 11:47:19 -0700 |
commit | 6cdcce7d28e8140404502b72a7dcab2e729afb40 (patch) | |
tree | 44db6af9ee3b347da0498247dc508bf95af079a0 | |
parent | ee98939031245c43304f8c7e7641a0e17a18f1f0 (diff) | |
download | resume-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-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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' \ |