43 lines
1.0 KiB
Makefile
43 lines
1.0 KiB
Makefile
include ${makefileDir}/Makefile.vidGal.cfg
|
|
|
|
.PHONY: all clean
|
|
all: $(webmVideos) $(jpegThumbs)
|
|
|
|
clean:
|
|
$(RM) \
|
|
$(vidstabLogs) \
|
|
$(firstPassLogs) \
|
|
$(webmVideos) \
|
|
$(jpegThumbs)
|
|
|
|
.PHONY: thumbnails
|
|
thumbnails: $(jpegThumbs)
|
|
|
|
videos/thumbnails/%.jpg: videos/.forCompressing/%.video
|
|
make --include-dir=${makefileDir} --file=${makefileDir}/Makefile.webmCompress $@
|
|
|
|
.PHONY: echo
|
|
echo:
|
|
@echo $(webmVideos)
|
|
@echo $(firstPassLogs)
|
|
@echo $(targetSourceDirectories)
|
|
|
|
# Erzeugen der Targets
|
|
# @todo das muss ich immer noch einzeln aufrufen ...
|
|
.PHONY: targetSources
|
|
targetSources:
|
|
mkdir -p videos/.forCompressing
|
|
for directory in $(targetSourceDirectories) ;\
|
|
do for file in $${directory}/*.*;\
|
|
do \
|
|
checkSum=$$(sha512sum $${file});\
|
|
ln -f $${file} videos/.forCompressing/$${checkSum%%\ *}.video;\
|
|
done;\
|
|
done;
|
|
|
|
# target und dependencies müssen noch angepasst werden
|
|
# Die erste Abhängigkeit muss das quellVideo sein!
|
|
videos/webm/%.webm: videos/.forCompressing/%.video
|
|
make --include-dir=${makefileDir} --file=${makefileDir}/Makefile.webmCompress $@
|
|
|