summaryrefslogtreecommitdiff
path: root/Fosdem2023/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Fosdem2023/Makefile')
-rw-r--r--Fosdem2023/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Fosdem2023/Makefile b/Fosdem2023/Makefile
new file mode 100644
index 0000000..1f2daf1
--- /dev/null
+++ b/Fosdem2023/Makefile
@@ -0,0 +1,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)
+