Blame view

Makefile 448 Bytes
73f2ae9d   Geoffrey PREUD'HOMME   Outils de rédaction
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  .PHONY: default cleantmp clean
  
  default: $(subst md,pdf,$(wildcard *.md))
  
  SOURCES=$(wildcard *.asm) $(wildcard *.txt)
  
  %.pdf: %.html
  	./html2pdf -i "$<" -o "$@" -t "Tutorat de microprocesseurs S6 - TD1 Sujet 8"
  
  %.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))