aboutsummaryrefslogtreecommitdiffstats
path: root/annual
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@fripost.org>2022-05-22 10:51:15 +0200
committerGustav Eek <gustav.eek@fripost.org>2022-05-22 10:51:15 +0200
commit2a898f739cddf40dd934efad5349f92aecafc752 (patch)
tree3664c7fa4d0f2d8c6a053df67d6c1f7a66d9c915 /annual
parent36ed198049ddd8591521d238b117c4259bc38d3e (diff)
Annual 2022. Makefile update
Diffstat (limited to 'annual')
-rw-r--r--annual/2022/motions/Makefile14
-rw-r--r--annual/2022/reports/Makefile7
2 files changed, 21 insertions, 0 deletions
diff --git a/annual/2022/motions/Makefile b/annual/2022/motions/Makefile
new file mode 100644
index 0000000..bc9ed38
--- /dev/null
+++ b/annual/2022/motions/Makefile
@@ -0,0 +1,14 @@
+BEAMER := $(basename $(wildcard *.mdwn))
+PAPER := $(basename $(wildcard *.mdwn))
+
+all: \
+ $(addsuffix .slides.pdf, $(BEAMER)) \
+ $(addsuffix .paper.pdf, $(PAPER)) \
+
+
+$(addsuffix .slides.pdf, $(BEAMER)): %.slides.pdf: %.mdwn
+ pandoc -f markdown -t beamer -o $@ $<
+
+$(addsuffix .paper.pdf, $(PAPER)): %.paper.pdf: %.mdwn
+ pandoc -f markdown -t latex -o $@ $<
+
diff --git a/annual/2022/reports/Makefile b/annual/2022/reports/Makefile
new file mode 100644
index 0000000..5f8f603
--- /dev/null
+++ b/annual/2022/reports/Makefile
@@ -0,0 +1,7 @@
+PAPER := $(basename $(wildcard *.mdwn))
+
+all: \
+ $(addsuffix .pdf, $(PAPER)) \
+
+$(addsuffix .pdf, $(PAPER)): %.pdf: %.mdwn
+ pandoc -f markdown -t latex -o $@ $<