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)