all: build/wims-psf.pdf build/wims-psf.odt build/wims-psf.docx build/wims-psf.html

build/wims-psf.pdf: wims-psf.rst template.latex
	pandoc --from=rst --to=pdf  --pdf-engine=xelatex \
	  --template=template.latex \
	  -V lang=fr \
	  -V geometry:"top=2cm, bottom=2cm, left=1.5cm, right=1.5cm" \
	  -V colorlinks -V urlcolor=NavyBlue \
	  -V CJKmainfont="WenQuanYi Zen Hei" $< -o $@

build/wims-psf.odt: wims-psf.rst
	pandoc -V lang=fr --from=rst --to=odt  $< -o $@

build/wims-psf.docx: wims-psf.rst
	pandoc -V lang=fr --from=rst --to=docx  $< -o $@

build/wims-psf.html: wims-psf.rst
	pandoc -V lang=fr --standalone --from=rst --to=html  $< -o $@

clean:
	find . -name "*~" | xargs rm -f

distclean: clean

dist: clean

.PHONY: all clean distclean dist
