summaryrefslogtreecommitdiff
path: root/Fosdem2023/Makefile
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-01-11 16:36:50 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-01-11 16:36:50 +0100
commitc3cd50085e400541e595a7852f84df680bb1dd14 (patch)
tree7ea69d1cf2fb558109575f356f1f3fcb2da8e249 /Fosdem2023/Makefile
Initial commit
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)
+