allez, un Makefile plus générique
This commit is contained in:
parent
a46cc11b2a
commit
b9910a9fa5
|
@ -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)
|
||||
|
||||
|
|
Reference in New Issue