SUBDIRS = \
	img

$(SUBDIRS):
	$(MAKE) -C $@

pandoc-papers.pdf: pandoc-papers.md
	pandoc \
		-V aspectratio=169 \
		-V institute=iDiv \
		-V theme=Frankfurt \
		-V navigation=horizontal \
		-V logo=img/idiv-black-logo.png \
		--pdf-engine=xelatex \
		-s \
		-t beamer \
		-o pandoc-papers.pdf \
		pandoc-papers.md

all: subdirs

clean:
	for dir in $(SUBDIRS); do \
	  $(MAKE) -C $$dir $@; \
	done

default: all

subdirs: $(SUBDIRS)

.PHONY: \
	$(SUBDIRS) \
	all \
	clean \
	default \
	subdirs