Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Makefile 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # ----------------------------------------------------------------------------
  2. # Copyright (c) 2024 Thomas Buck (thomas@xythobuz.de)
  3. # Copyright (c) 2024 Philipp Schönberger (mail@phschoen.de)
  4. #
  5. # This program is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # (at your option) any later version.
  9. #
  10. # This program is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # See <http://www.gnu.org/licenses/>.
  16. # ----------------------------------------------------------------------------
  17. inputs = $(wildcard *.svg)
  18. outputs = $(inputs:%.svg=output/%.wav)
  19. outputs += $(inputs:%.svg=output/%_rotate.wav)
  20. .PHONY: all
  21. all: output ${outputs}
  22. output:
  23. mkdir output
  24. output/%.wav: %.svg
  25. ./render.py -s 192000 -i 5 -o $@ $<
  26. output/%_rotate.wav: %.svg
  27. for number in {000..360..5} ; do \
  28. ./render.py -s 192000 -i 5 -t 0.1 -o output/$(@F)_$$number.wav -r $$number $< ; \
  29. done
  30. ffmpeg -f concat -safe 0 -i <( for f in output/$(@F)_*.wav; do echo "file '$$(pwd)/$$f'"; done ) $@
  31. rm output/$(@F)_*.wav
  32. .PHONY: clean
  33. clean:
  34. rm -rf output