forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
79 lines (68 loc) · 2.22 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
.PHONY: all clean
AUXFILES=*.tmp *.tui *.tuo *.mp *.tuc *.markdown.in *.markdown.out \
*.markdown.lua *.log *.aux *.dvi *.idv *.lg *.tmp *.xref *.4ct *.4tc \
example.tex *.debug-extensions.json debug-extensions.json
AUXDIRS=_markdown_*/
LUACLI_OPTIONS=\
cacheDir=_markdown_example \
contentBlocks=true \
debugExtensions=true \
definitionLists=true \
eagerCache=false \
fancy_lists=true \
fencedCode=true \
hashEnumerators=true \
inlineNotes=true \
lineBlocks=true \
notes=true \
pipeTables=true \
rawAttribute=true \
smartEllipses=true \
strikeThrough=true \
subscripts=true \
superscripts=true \
tableCaptions=true \
taskLists=true \
texMathDollars=true \
texMathDoubleBackslash=true \
texMathSingleBackslash=true
OUTPUT=\
context-mkiv.pdf \
latex-pdftex.pdf latex-xetex.pdf latex-luatex.pdf \
latex-tex4ht.html latex-tex4ht.css \
optex.pdf
# This is the default pseudo-target.
all: $(OUTPUT)
$(MAKE) clean
# This target typesets the ConTeXt example using the Mark IV format.
context-mkiv.pdf: context-mkiv.tex example.tex
context --luatex context-mkiv.tex
# This target typesets the LaTeX example using the pdfTeX engine.
latex-pdftex.pdf: latex-pdftex.tex example.tex
pdflatex --shell-escape $<
pdflatex --shell-escape $<
# This target typesets the LaTeX example using the XeTeX engine.
latex-xetex.pdf: latex-xetex.tex example.tex
xelatex --shell-escape $<
xelatex --shell-escape $<
# This target typesets the LaTeX example using the LuaTeX engine.
latex-luatex.pdf: latex-luatex.tex example.tex
lualatex $<
lualatex $<
# This target typesets the LaTeX example using TeX4ht.
latex-tex4ht.html latex-tex4ht.css: latex-tex4ht.tex example.tex
make4ht --shell-escape $< fn-in
# This target typesets the OpTeX example.
optex.pdf: optex.tex
optex $<
# This target converts the markdown example to a plain TeX representation
# using the Lua command-line interface for the Markdown package.
example.tex: example.md
texlua "`kpsewhich -a markdown-cli.lua | head -n 1`" $(LUACLI_OPTIONS) -- $< $@
# This pseudo-target removes any existing auxiliary files and directories.
clean:
rm -f $(AUXFILES)
rm -rf $(AUXDIRS)
# This pseudo-target removes any makeable files.
implode: clean
rm -f $(OUTPUT)