forked from true-grue/kisscm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (26 loc) · 1.01 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
MD_FILES = md/introduction.md \
md/command_line.md \
md/package_managers.md \
md/conf_languages.md \
md/build_automation.md \
md/version_control.md \
md/docs_as_code.md \
md/virtual_machines.md \
md/bibliography.md
HTML_FILE = build/kisscm.html
PDF_FILE = build/kisscm.pdf
DOCX_FILE = build/kisscm.docx
OPTIONS = -d default.yaml --from=markdown+tex_math_single_backslash+tex_math_dollars+raw_tex --toc --resource-path=images -F pandoc-crossref --columns=1 --citeproc --lua-filter=filters/pagebreak.lua
all: html pdf docx
html: $(HTML_FILE)
pdf: $(PDF_FILE)
docx: $(DOCX_FILE)
$(HTML_FILE): $(MD_FILES)
pandoc $(MD_FILES) $(OPTIONS) --output=$(HTML_FILE) --to=html5 --mathjax --self-contained
$(PDF_FILE): $(MD_FILES)
pandoc $(MD_FILES) $(OPTIONS) --metadata-file pdf.yaml --output=$(PDF_FILE) --to=latex --pdf-engine=xelatex
$(DOCX_FILE): $(MD_FILES)
pandoc $(MD_FILES) $(OPTIONS) --reference-doc=template.docx --output=$(DOCX_FILE) --to=docx
python filters/bullets.py $(DOCX_FILE)
clean:
powershell rm build/*.*