Projet

Général

Profil

Télécharger (932 octets) Statistiques
| Branche: | Tag: | Révision:

root / doc / Makefile @ master

1
PANDOC=pandoc
2
PANDOCFLAGS=--standalone --smart --toc --number-sections --latex-engine=xelatex --variable geometry=margin=3cm --variable lang=french --variable mainfont=Cantarell --variable fontsize=12pt -c pandoc.css
3
SRCS=$(wildcard *.md)
4
IMAGES=$(wildcard images/*.png)
5
PDFS=$(SRCS:%.md=%.pdf)
6
HTMLS=$(SRCS:%.md=%.html)
7
TEXS=$(SRCS:%.md=%.tex)
8
ALL=$(PDFS) $(HTMLS) index.html
9

    
10
all: $(ALL)
11

    
12
index.html: $(SRCS) index.html.build
13
	echo $(IMAGES)
14
	sh ./index.html.build > index.html
15

    
16
%.pdf: %.md $(IMAGES) Makefile
17
	$(PANDOC) $(PANDOCFLAGS) $< -o $@
18

    
19
%.tex: %.md
20
	$(PANDOC) $(PANDOCFLAGS) $< -o $@
21

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

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

    
28
.PHONY:
29

    
30
tex: $(TEXS)
31

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

    
35
publish: $(ALL)
36
	rsync -av * doc.entrouvert.org:/var/vhosts/doc.entrouvert.org/web/uauth
(1-1/6)