From 0963815d6bb6e9cf01b95aa05c3b34a3d6fcaa22 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 17 Oct 2023 11:59:28 -0400 Subject: add prerec scripts --- roles/prerec/templates/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/prerec/templates/Makefile (limited to 'roles/prerec/templates/Makefile') 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 "$@" "$<" -- cgit v1.2.3