Début CR TP3
This commit is contained in:
parent
c7695e6e75
commit
902ec65f1a
6 changed files with 248 additions and 47 deletions
20
TP3/Makefile
Normal file
20
TP3/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
.PHONY: default cleantmp clean
|
||||
|
||||
default: $(subst md,pdf,$(wildcard *.md))
|
||||
|
||||
SOURCES=$(wildcard *.asm) $(wildcard *.txt)
|
||||
|
||||
%.pdf: %.html
|
||||
html2pdf -i "$<" -o "$@" -t "$* - REVIRON Athur PREUD'HOMME Geoffrey"
|
||||
|
||||
%.html: %.tmp ../template.html
|
||||
md2html -i "$<" -o "$@" -t ../template.html
|
||||
|
||||
%.tmp: %.md $(SOURCES)
|
||||
markedpp "$<" > "$@"
|
||||
|
||||
cleantmp:
|
||||
rm -rf $(subst md,html,$(wildcard *.md)) *.tmp
|
||||
|
||||
clean: cleantmp
|
||||
rm -rf $(subst md,pdf,$(wildcard *.md))
|
Reference in a new issue