blob: 282f4b7e356c508b6ae7b441a4ea50d55bab3d80 (
plain)
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
|
MDWN = \
inquiries/2019-03-28-flfd.mdwn \
inquiries/cost-operation.mdwn \
TMP = tmp
ALL = \
pdf/2019-03-28-flfd.pdf \
odt/cost-operation.odt \
odt/cost-operation.pdf \
all: pdf odt $(ALL)
OPT_PANDOC = \
-f markdown \
-t latex \
-V documetclass=article -V classoption=twocolumn \
pdf/2019-03-28-flfd.pdf: inquiries/2019-03-28-flfd.mdwn
cat $< | sed -f sed/latex.sed | pandoc $(OPT_PANDOC) -o $@
odt/cost-operation.odt: inquiries/cost-operation.mdwn
cat $< | pandoc -s -f markdown -t odt -o $@
PAR_CONV = \
--headless "-env:UserInstallation=file:///tmp/lo-$$$$" \
--convert-to pdf \
--outdir "$(abspath $(dir $@))" \
%.pdf: %.odt
libreoffice $(PAR_CONV) "$<"
pdf odt:
mkdir -p $@
clean:
rm -fr pdf odt
|