summaryrefslogtreecommitdiffstats
path: root/roles/prerec/templates/Makefile
blob: 94aa41247f5cd66d5bd1e5db8b16bc315d1777aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# {{ 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 "$@" "$<"

rsync:
	rsync -avzue ssh {{ emacsconf_caption_dir }}/cache/ orga@media.emacsconf.org:/var/www/media.emacsconf.org/{{ emacsconf_year }}/backstage/