Demi prépa TP1

This commit is contained in:
Geoffrey Frogeye 2017-05-02 07:47:48 +02:00
commit 369973c9fd
7 changed files with 183 additions and 0 deletions

18
TP1/Makefile Normal file
View file

@ -0,0 +1,18 @@
.PHONY: default cleantmp clean
default: $(subst md,pdf,$(shell ls *.md))
%.pdf: %.html
wkhtmltopdf --title "$* - DJERABA Taky PREUD'HOMME Geoffrey" "$<" "$@"
%.html: %.tmp ../template.html
pandoc -f markdown+hard_line_breaks "$<" --template ../template.html -o "$@"
%.tmp: %.md
markedpp "$<" > "$@"
cleantmp:
rm -rf $(subst md,html,$(shell ls *.md)) *.tmp
clean: cleantmp
rm -rf $(subst md,pdf,$(shell ls *.md))