TARGET = presentation.pdf TEMPLATE = template.tex CONTENT = contents.md # IMG_DIR = img # IMG_SRCS = $(wildcard $(IMG_DIR)/*.svg) # IMG_BASENAME = $(notdir $(basename $(IMG_SRCS))) # TMP_IMG_DIR = tmp # IMGS = $(addsuffix .png, $(addprefix $(TMP_IMG_DIR)/, $(IMG_BASENAME))) all: $(TARGET) $(TARGET): $(CONTENT) $(TEMPLATE) # $(IMGS) pandoc -f markdown+smart -t beamer $(CONTENT) -o $(TARGET) --pdf-engine=xelatex --template=$(TEMPLATE) # $(IMGS): $(TMP_IMG_DIR)/%.png: $(IMG_DIR)/%.svg # mkdir -p $(TMP_IMG_DIR) # inkscape $< --export-filename $@ --export-type=png --export-background-opacity=0.0 clean: rm -r $(TARGET) # $(TMP_IMG_DIR) .PHONY: all clean $(CONTENT) $(TEMPLATE)