.PHONY: all clean ARTICLES=$(shell cat ./table_des_matières) all: statuts.pdf statuts.md: $(ARTICLES) cat $(ARTICLES) > statuts.md statuts_partial.tex: statuts.md pandoc -t latex statuts.md > statuts_partial.tex statuts.tex: header.tex statuts_partial.tex footer.tex cat header.tex statuts_partial.tex footer.tex > statuts.tex statuts.pdf: statuts.tex xelatex statuts.tex clean: rm -f statuts*