# ---------------------------------------------------------------------------- # Copyright (c) 2024 Thomas Buck (thomas@xythobuz.de) # Copyright (c) 2024 Philipp Schönberger (mail@phschoen.de) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # See . # ---------------------------------------------------------------------------- inputs = $(wildcard *.svg) outputs = $(inputs:%.svg=output/%.wav) outputs += $(inputs:%.svg=output/%_rotate.wav) .PHONY: all all: output ${outputs} output: mkdir output output/%.wav: %.svg ./render.py -s 192000 -o $@ $< output/%_rotate.wav: %.svg for number in {000..360..5} ; do \ ./render.py -s 192000 -t 0.07 -o output/$(@F)_$$number.wav -r $$number $< ; \ done ffmpeg -f concat -safe 0 -i <( for f in output/$(@F)_*.wav; do echo "file '$$(pwd)/$$f'"; done ) $@ rm output/$(@F)_*.wav .PHONY: clean clean: rm -rf output