forked from dialoa/dialectica-filters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
50 lines (39 loc) · 2.09 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
DIFF ?= diff --strip-trailing-cr -u
.PHONY: test
test: sample.md expected.html expected.tex \
sample_head-inc_1.md expected_hi_1.html expected_hi_1.tex \
sample_head-inc_2.md expected_hi_2.html expected_hi_2.tex \
sample_head-inc_3.md expected_hi_3.html expected_hi_3.tex \
first-line-indent.lua
@pandoc -s --lua-filter first-line-indent.lua --to=html sample.md \
| $(DIFF) expected.html -
@pandoc -s --lua-filter first-line-indent.lua --to=latex sample.md \
| $(DIFF) expected.tex -
@pandoc -s --lua-filter first-line-indent.lua --to=html sample_head-inc_1.md \
| $(DIFF) expected_hi_1.html -
@pandoc -s --lua-filter first-line-indent.lua --to=latex sample_head-inc_1.md \
| $(DIFF) expected_hi_1.tex -
@pandoc -s --lua-filter first-line-indent.lua --to=html sample_head-inc_2.md \
| $(DIFF) expected_hi_2.html -
@pandoc -s --lua-filter first-line-indent.lua --to=latex sample_head-inc_2.md \
| $(DIFF) expected_hi_2.tex -
@pandoc -s --lua-filter first-line-indent.lua --to=html sample_head-inc_3.md \
| $(DIFF) expected_hi_3.html -
@pandoc -s --lua-filter first-line-indent.lua --to=latex sample_head-inc_3.md \
| $(DIFF) expected_hi_3.tex -
expected.html: sample.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected.tex: sample.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected_hi_1.html: sample_head-inc_1.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected_hi_1.tex: sample_head-inc_1.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected_hi_2.html: sample_head-inc_2.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected_hi_2.tex: sample_head-inc_2.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected_hi_3.html: sample_head-inc_3.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<
expected_hi_3.tex: sample_head-inc_3.md first-line-indent.lua
pandoc -s --lua-filter first-line-indent.lua --output $@ $<