1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # ----------------------------------------------------------------------------
- # 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 <http://www.gnu.org/licenses/>.
- # ----------------------------------------------------------------------------
-
- 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 -i 5 -o $@ $<
-
- output/%_rotate.wav: %.svg
- for number in {000..360..5} ; do \
- ./render.py -s 192000 -i 5 -t 0.1 -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
|