SOURCES = $(shell ls *.md)
TARGETS = $(patsubst %.md, %.beamer.pdf, $(SOURCES)) \
	connexion-moodle-freeduc.html

all : $(TARGETS)

%.beamer.pdf: %.md Makefile
	pandoc -t beamer -V fontsize=9pt $< -o $@
	echo made $@

%.html : %.md
	pandoc -standalone -t html $< -o $@
	echo made $@

clean:
	rm -f *~ *.beamer.pdf

.PHONY: all clean
