summaryrefslogtreecommitdiffstats
path: root/documentation/Makefile
blob: 4c39f2563d3f637fea10abcac5c08c1aa3c6b45b (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
PANDOC=pandoc
PANDOCFLAGS=--standalone --smart --toc -c pandoc.css
SRCS=$(wildcard *.md)
PDFS=$(SRCS:%.md=%.pdf)
HTMLS=$(SRCS:%.md=%.html)
TEXS=$(SRCS:%.md=%.tex)
ALL=$(PDFS) $(HTMLS)


all: $(ALL)

%.pdf: %.md
	$(PANDOC) $(PANDOCFLAGS) --latex-engine=xelatex --variable lang=french $< -o $@

tex: $(TEXS)

%.tex: %.md
	$(PANDOC) $(PANDOCFLAGS) --latex-engine=xelatex --variable lang=french $< -o $@

%.html: %.md
	$(PANDOC) $(PANDOCFLAGS) $< -o $@

%.txt: %.md
	$(PANDOC) $(PANDOCFLAGS) $< -o $@

.PHONY:

clean:
	rm -f $(PDFS) $(HTMLS) $(TEXS) $(SRCS:%.md=%.aux) $(SRCS:%.md=%.log) $(SRCS:%.md=%.out) $(SRCS:%.md=%.toc)