This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
gi-psl/documentation/Makefile

31 lines
623 B
Makefile

PANDOC=pandoc
PANDOCFLAGS=--standalone --smart --toc -c pandoc.css
SRCS=$(wildcard *.md)
PDFS=$(SRCS:%.md=%.pdf)
HTMLS=$(SRCS:%.md=%.html)
TEXS=$(SRCS:%.md=%.tex)
ALL=$(PDFS) $(HTMLS)
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 $@
%.html: %.md
$(PANDOC) $(PANDOCFLAGS) $< -o $@
%.txt: %.md
$(PANDOC) $(PANDOCFLAGS) $< -o $@
.PHONY:
clean:
rm -f $(PDFS) $(HTMLS) $(TEXS) $(SRCS:%.md=%.aux) $(SRCS:%.md=%.log) $(SRCS:%.md=%.out) $(SRCS:%.md=%.toc)