ALL1 = $(wildcard *.md) ALL = $(patsubst %.md,%.html,$(ALL1)) all: $(ALL) header.html: header.md pandoc header.md -t html -o header.html menu.html: menu.md pandoc menu.md -t html -o menu.html footer.html: footer.md pandoc footer.md -t html -o footer.html source.md: *md for i in *md; do \ echo "* [$$i]($$i)">>source.md_; \ done ; mv source.md_ source.md %.html: %.md header.html menu.html footer.html pandoc -T "Florent Capelli" -c design.css -B header.html -B menu.html -A footer.html $< -o $@ publish: rsync --progress -Rav . synchro-lil.lille.inria.fr:/public_html/fcapelli/ clean: rm *~