My Slides about everything.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
468B

  1. SOURCES = $(wildcard *.md)
  2. PDF := $(SOURCES:%.md=%.pdf)
  3. BUILDDIR = build/
  4. DEP = $(wildcard templates/*.sty latex_input*.tex images/*.jpg images/*.png)
  5. TARGETS = $(addprefix $(BUILDDIR),$(PDF))
  6. # Change LaTeX engine
  7. PARAMETERS = --pdf-engine=pdflatex
  8. PARAMETERS += -t beamer
  9. PARAMETERS += -F mermaid-filter
  10. all: $(TARGETS)
  11. $(BUILDDIR)%.pdf : %.md $(DEP)
  12. @mkdir -p $(BUILDDIR) # Make sure build dir exists
  13. pandoc $(PARAMETERS) $< -o $@
  14. clean:
  15. @rm -f $(TARGETS)