-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
47 lines (40 loc) · 1.46 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
PY=python
PANDOC=pandoc
BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/source
OUTPUTDIR=$(BASEDIR)/output
STYLEDIR=$(INPUTDIR)/style
help:
@echo ' '
@echo 'Makefile for the Markdown CV '
@echo ' '
@echo 'Usage: '
@echo ' make html (re)generate the web site '
@echo ' make pdf generate a PDF file '
@echo ' make docx generate a Docx file '
@echo ' make tex generate a tex file '
@echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html'
@echo ' '
@echo 'pandoc test.md -o test.pdf --bibliography=test_ref.bib --csl=plos.csl '
@echo ' '
@echo 'get templates from: https://github.com/jgm/pandoc-templates '
pdf:
pandoc -s \
"$(INPUTDIR)"/*.md \
-o "$(OUTPUTDIR)/cv.pdf" \
--template="$(STYLEDIR)/template.tex" \
--latex-engine=xelatex
tex:
pandoc -s \
"$(INPUTDIR)"/*.md \
-o "$(OUTPUTDIR)/cv.tex" \
--template="$(STYLEDIR)/template.tex" \
--latex-engine=xelatex
docx:
pandoc "$(INPUTDIR)"/*.md \
-o "$(OUTPUTDIR)/cv.docx" \
html:
pandoc "$(INPUTDIR)"/*.md \
-o "$(OUTPUTDIR)/cv.html"
.PHONY: help pdf docx html tex