summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/Makefile
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2023-10-17 11:59:28 -0400
committerSacha Chua <sacha@sachachua.com>2023-10-17 11:59:28 -0400
commit0963815d6bb6e9cf01b95aa05c3b34a3d6fcaa22 (patch)
tree4fa0feaa28cd551bc2e2e9a98a92abb6895a25ce /roles/prerec/templates/Makefile
parentd51d86133dbd93bbf6203fdb1683a23aa40beae6 (diff)
downloademacsconf-ansible-0963815d6bb6e9cf01b95aa05c3b34a3d6fcaa22.tar.xz
emacsconf-ansible-0963815d6bb6e9cf01b95aa05c3b34a3d6fcaa22.zip
add prerec scripts
Diffstat (limited to 'roles/prerec/templates/Makefile')
-rw-r--r--roles/prerec/templates/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/roles/prerec/templates/Makefile b/roles/prerec/templates/Makefile
new file mode 100644
index 0000000..53b49be
--- /dev/null
+++ b/roles/prerec/templates/Makefile
@@ -0,0 +1,13 @@
+# {{ ansible_managed }}
+
+PRERECS_FINAL := $(wildcard {{ emacsconf_id }}-*--final.webm)
+PRERECS_MAIN := $(patsubst %--final.webm, %--main.webm, $(PRERECS_FINAL))
+
+.PHONY: all
+all: $(PRERECS_MAIN) $(PRERECS_FINAL)
+
+emacsconf-%--main.webm: {{ emacsconf_id }}-%--final.webm
+ cp "$<" "$@"
+
+emacsconf-%--final.webm: {{ emacsconf_id }}-%--main.vtt
+ mux-subs.sh "$@" "$<"