summaryrefslogtreecommitdiff
path: root/Fosdem2023/Makefile
blob: 1f2daf1002d73f5f8541429a8579d0dbdd4a27f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)