This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
gi-psl/documentation/Makefile

37 lines
934 B
Makefile
Raw Normal View History

2015-02-17 17:49:44 +01:00
PANDOC=pandoc
2015-02-27 23:21:31 +01:00
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
2015-02-19 13:16:47 +01:00
SRCS=$(wildcard *.md)
2015-02-19 15:50:31 +01:00
IMAGES=$(wildcard images/*.png)
2015-02-19 13:16:47 +01:00
PDFS=$(SRCS:%.md=%.pdf)
HTMLS=$(SRCS:%.md=%.html)
TEXS=$(SRCS:%.md=%.tex)
2015-02-19 15:50:31 +01:00
ALL=$(PDFS) $(HTMLS) index.html
2015-02-17 17:49:44 +01:00
all: $(ALL)
2015-02-19 15:50:31 +01:00
index.html: $(SRCS) index.html.build
echo $(IMAGES)
sh ./index.html.build > index.html
2015-02-27 23:21:31 +01:00
%.pdf: %.md $(IMAGES) Makefile
$(PANDOC) $(PANDOCFLAGS) $< -o $@
2015-02-19 13:16:47 +01:00
2015-02-17 17:49:44 +01:00
%.tex: %.md
2015-02-27 23:21:31 +01:00
$(PANDOC) $(PANDOCFLAGS) $< -o $@
2015-02-17 17:49:44 +01:00
%.html: %.md
$(PANDOC) $(PANDOCFLAGS) $< -o $@
%.txt: %.md
$(PANDOC) $(PANDOCFLAGS) $< -o $@
.PHONY:
2015-02-19 15:50:31 +01:00
tex: $(TEXS)
2015-02-17 17:49:44 +01:00
clean:
2015-02-19 15:50:31 +01:00
rm -f index.html $(PDFS) $(HTMLS) $(TEXS) $(SRCS:%.md=%.aux) $(SRCS:%.md=%.log) $(SRCS:%.md=%.out) $(SRCS:%.md=%.toc)
2015-02-17 17:49:44 +01:00
2015-02-19 15:50:31 +01:00
publish: $(ALL)
rsync -av * doc.entrouvert.org:/var/vhosts/doc.entrouvert.org/web/supann/