summaryrefslogtreecommitdiffstats
path: root/documentation/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/Makefile')
-rw-r--r--documentation/Makefile17
1 files changed, 12 insertions, 5 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 4c39f25..6ba976e 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -1,18 +1,21 @@
PANDOC=pandoc
PANDOCFLAGS=--standalone --smart --toc -c pandoc.css
SRCS=$(wildcard *.md)
+IMAGES=$(wildcard images/*.png)
PDFS=$(SRCS:%.md=%.pdf)
HTMLS=$(SRCS:%.md=%.html)
TEXS=$(SRCS:%.md=%.tex)
-ALL=$(PDFS) $(HTMLS)
-
+ALL=$(PDFS) $(HTMLS) index.html
all: $(ALL)
-%.pdf: %.md
+index.html: $(SRCS) index.html.build
+ echo $(IMAGES)
+ sh ./index.html.build > index.html
+
+%.pdf: %.md $(IMAGES)
$(PANDOC) $(PANDOCFLAGS) --latex-engine=xelatex --variable lang=french $< -o $@
-tex: $(TEXS)
%.tex: %.md
$(PANDOC) $(PANDOCFLAGS) --latex-engine=xelatex --variable lang=french $< -o $@
@@ -25,6 +28,10 @@ tex: $(TEXS)
.PHONY:
+tex: $(TEXS)
+
clean:
- rm -f $(PDFS) $(HTMLS) $(TEXS) $(SRCS:%.md=%.aux) $(SRCS:%.md=%.log) $(SRCS:%.md=%.out) $(SRCS:%.md=%.toc)
+ rm -f index.html $(PDFS) $(HTMLS) $(TEXS) $(SRCS:%.md=%.aux) $(SRCS:%.md=%.log) $(SRCS:%.md=%.out) $(SRCS:%.md=%.toc)
+publish: $(ALL)
+ rsync -av * doc.entrouvert.org:/var/vhosts/doc.entrouvert.org/web/supann/