Makefile 418 Bytes
Newer Older
Sébastien MARCEL's avatar
Sébastien MARCEL committed
1
TARGET := lab.pdf
2
SECTIONS := $(sort $(wildcard ??_section*.md))
Sébastien MARCEL's avatar
Sébastien MARCEL committed
3

4 5 6
# builds a single section
%.pdf: metadata.yaml %.md
	pandoc -H header.tex -f markdown -t beamer -o $@ $?
Sébastien MARCEL's avatar
Sébastien MARCEL committed
7

8 9
# builds the whole lecture
$(TARGET): metadata.yaml $(SECTIONS)
Amir MOHAMMADI's avatar
Amir MOHAMMADI committed
10
	pandoc -H header.tex -f markdown -t beamer -o $@ $^
11 12

all: $(TARGET)
Sébastien MARCEL's avatar
Sébastien MARCEL committed
13 14 15 16 17

.PHONY: clean

clean:
	@rm -vf $(shell find . -name "*~")
18
	@rm -vf $(TARGET) $(patsubst %.md,%.pdf,$(SECTIONS))