CR TP1 rédigé
This commit is contained in:
parent
23da83c351
commit
d3dce08dcc
10 changed files with 174 additions and 147 deletions
10
TP1/Makefile
10
TP1/Makefile
|
@ -1,6 +1,8 @@
|
|||
.PHONY: default cleantmp clean
|
||||
|
||||
default: $(subst md,pdf,$(shell ls *.md))
|
||||
default: $(subst md,pdf,$(wildcard *.md))
|
||||
|
||||
SOURCES=$(wildcard *.asm) $(wildcard *.txt)
|
||||
|
||||
%.pdf: %.html
|
||||
wkhtmltopdf --title "$* - DJERABA Taky PREUD'HOMME Geoffrey" "$<" "$@"
|
||||
|
@ -8,11 +10,11 @@ default: $(subst md,pdf,$(shell ls *.md))
|
|||
%.html: %.tmp ../template.html
|
||||
pandoc -f markdown+hard_line_breaks "$<" --template ../template.html -o "$@"
|
||||
|
||||
%.tmp: %.md
|
||||
%.tmp: %.md $(SOURCES)
|
||||
markedpp "$<" > "$@"
|
||||
|
||||
cleantmp:
|
||||
rm -rf $(subst md,html,$(shell ls *.md)) *.tmp
|
||||
rm -rf $(subst md,html,$(wildcard *.md)) *.tmp
|
||||
|
||||
clean: cleantmp
|
||||
rm -rf $(subst md,pdf,$(shell ls *.md))
|
||||
rm -rf $(subst md,pdf,$(wildcard *.md))
|
||||
|
|
Reference in a new issue