From b9910a9fa57b12b0176c4ab9ddb407f00035cad0 Mon Sep 17 00:00:00 2001 From: Thomas NOEL Date: Thu, 19 Feb 2015 13:16:47 +0100 Subject: [PATCH] =?UTF-8?q?allez,=20un=20Makefile=20plus=20g=C3=A9n=C3=A9r?= =?UTF-8?q?ique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- documentation/Makefile | 14 ++++++++------ 1 file 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)