-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 707 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 707 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
30
M4 = m4
PANDOC = pandoc
M4_SOURCE = ps-dossier.md.m4
M4_DEST = _ps-dossier.md
PANDOC_HTML_DEST = _ps-dossier.html
PANDOC_LATEX_DEST = _ps-dossier.tex
PANDOC_PDF_DEST = _ps-dossier.pdf
.PHONY: clean pdf latex markdown html all
all: markdown pdf latex html
clean:
rm -f $(PANDOC_HTML_DEST) $(PANDOC_LATEX_DEST) $(PANDOC_PDF_DEST) $(M4_DEST)
pdf:
$(M4) $(M4_SOURCE) > $(M4_DEST)
$(PANDOC) -f markdown -t pdf -o $(PANDOC_PDF_DEST) $(M4_DEST)
latex:
$(M4) $(M4_SOURCE) > $(M4_DEST)
$(PANDOC) -f markdown -t latex -o $(PANDOC_LATEX_DEST) $(M4_DEST)
html:
$(M4) $(M4_SOURCE) > $(M4_DEST)
$(PANDOC) -f markdown -t html -o $(PANDOC_HTML_DEST) $(M4_DEST)
markdown:
$(M4) $(M4_SOURCE) > $(M4_DEST)