Trois-quarts prépa TP2

(un jour on en fera une complète avant le TP)
This commit is contained in:
Geoffrey Frogeye 2017-05-03 09:47:08 +02:00
parent d3dce08dcc
commit e98ecc5c1f
5 changed files with 158 additions and 20 deletions

View file

@ -1,20 +0,0 @@
.PHONY: default cleantmp clean
default: $(subst md,pdf,$(wildcard *.md))
SOURCES=$(wildcard *.asm) $(wildcard *.txt)
%.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 $(SOURCES)
markedpp "$<" > "$@"
cleantmp:
rm -rf $(subst md,html,$(wildcard *.md)) *.tmp
clean: cleantmp
rm -rf $(subst md,pdf,$(wildcard *.md))

1
TP1/Makefile Symbolic link
View file

@ -0,0 +1 @@
../Makefile