TOPIC = edition-multimedia
SOURCES = $(shell ls *.md) $(shell find img -mindepth 1) Makefile

all: $(TOPIC).pdf

clean:
	find . -name "*~" | xargs rm -f

archive: clean all
	zip -r /tmp/archive.zip  . -x *.zip && mv /tmp/archive.zip $(TOPIC).zip

%.pptx: $(SOURCES)
	pandoc $< -t pptx -o $@

%.pdf: $(SOURCES)
	pandoc -t beamer $< -o $@

.PHONY: all clean archive

