1234567891011121314151617181920212223242526272829303132333435363738394041 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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
|