-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 744 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 744 Bytes
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
DIFF ?= diff --strip-trailing-cr -u
all: test
.PHONY: test
test: test_html test_latex
@echo Test complete.
.PHONY: generate
generate: expected.html expected.tex test.pdf
test_html: README.md columns.lua
@pandoc --lua-filter columns.lua --standalone --to=html $< \
| $(DIFF) expected.html -
test_latex: README.md columns.lua
@pandoc --lua-filter columns.lua --standalone --to=latex $< \
| $(DIFF) expected.tex -
expected.html: README.md columns.lua
pandoc --lua-filter columns.lua --standalone --output $@ $<
expected.tex: README.md columns.lua
pandoc --lua-filter columns.lua --standalone --output $@ $<
test.pdf: README.md columns.lua
pandoc --lua-filter columns.lua --standalone \
-M colorlinks=true \
--output $@ $<