kyu8-sourceFiles = \ kyu8-Grundform-Wurftechniken.md \ kyu8-Grundform-Bodentechniken.md \ kyu8-Anwendungsaufgaben-Stand.md \ kyu8-Anwendungsaufgaben-Boden.md \ kyu8-BodenRandoriNachWurf.md \ kyu8-Lexikon.md \ kyu7-sourceFiles = \ kyu7-Grundform-Wurftechniken.md \ kyu7-Grundform-Bodentechniken.md \ kyu7-Anwendungsaufgaben-Stand.md \ kyu7-Anwendungsaufgaben-Boden.md \ kyu7-BodenRandoriNachWurf.md \ kyu7-Lexikon.md \ kyu6-sourceFiles = \ Kyu6.md \ Kyu6-Ukemi.md \ Kyu6-NageWaza.md \ Kyu6-Anwendung-TachiWaza.md \ Kyu6-Anwendung-NeWaza.md \ Kyu6-Randori.md \ Kyu6-Lexikon.md .PHONY: all all: kyu8 kyu7 .PHONY: kyuVideos kyuVideos: for file in Kyu*.json; do ./clipper $${file}; done; make clearVideoMetaData make recursiveMozJpeg # Some of the meta data gets copied during rencode so we search for all webmVideos and delete the meta data .PHONY: clearVideoMetaData clearVideoMetaData: find -name *.webm -exec ffmpeg -i {} -map_metadata -1 -c:v copy -c:a copy temp.webm \; -exec mv -f temp.webm {} \; .PHONY: recursiveMozJpeg recursiveMozJpeg: find -name *.jpg -exec ../submodules/mozjpeg/build/jpegtran -outfile {} {} \; .PHONY: clean clean: cleanVideos .PHONY: cleanVideos cleanVideos: rm -r videos