phd-thesis/plan/Makefile

16 lines
296 B
Makefile

TARGET=plan.pdf
MD_TARGET=$(TARGET:.pdf=.md)
SOURCES=$(shell ls -1 [0-9]*_*.md)
all: $(TARGET)
$(TARGET): $(MD_TARGET)
pandoc -o "$@" --pdf-engine=lualatex "$<"
$(MD_TARGET): $(SOURCES)
cat pandoc_header.md > $@
cat $^ >> $@
sed -i 's/\\rho/rho/g' $@
clean:
rm -f $(TARGET) $(MD_TARGET)