summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2015-02-19 12:16:47 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2015-02-19 12:16:47 (GMT)
commitb9910a9fa57b12b0176c4ab9ddb407f00035cad0 (patch)
tree2cd2145330eb5c21a661f450c9ad6ca9c0283274
parenta46cc11b2ab61230f5d9645aa056368ae6c3c06f (diff)
downloadgi-psl-b9910a9fa57b12b0176c4ab9ddb407f00035cad0.zip
gi-psl-b9910a9fa57b12b0176c4ab9ddb407f00035cad0.tar.gz
gi-psl-b9910a9fa57b12b0176c4ab9ddb407f00035cad0.tar.bz2
allez, un Makefile plus générique
-rw-r--r--documentation/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/documentation/Makefile b/documentation/Makefile
index 2d0ffba..4c39f25 100644
--- a/documentation/Makefile
+++ b/documentation/Makefile
@@ -1,10 +1,10 @@
PANDOC=pandoc
PANDOCFLAGS=--standalone --smart --toc -c pandoc.css
-ALL=installation-base.pdf installation-base.html \
- installation-ldap.pdf installation-ldap.html \
- installation-ldapsaisie.pdf installation-ldapsaisie.html \
- installation-idp.pdf installation-idp.html \
- exploitation-ldap.pdf exploitation-ldap.html
+SRCS=$(wildcard *.md)
+PDFS=$(SRCS:%.md=%.pdf)
+HTMLS=$(SRCS:%.md=%.html)
+TEXS=$(SRCS:%.md=%.tex)
+ALL=$(PDFS) $(HTMLS)
all: $(ALL)
@@ -12,6 +12,8 @@ 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 $@
@@ -24,5 +26,5 @@ all: $(ALL)
.PHONY:
clean:
- rm -f *.pdf *.html *.tex *.aux *.log *.out *.toc
+ rm -f $(PDFS) $(HTMLS) $(TEXS) $(SRCS:%.md=%.aux) $(SRCS:%.md=%.log) $(SRCS:%.md=%.out) $(SRCS:%.md=%.toc)