Extra "ports" of juce-based plugins using the distrho build system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.1KB

  1. # -----------------------------------------
  2. # Compile all the Plugins
  3. PREFIX = /usr
  4. # -----------------------------------------
  5. # all
  6. all:
  7. $(MAKE) -C ports
  8. $(MAKE) gen
  9. # -----------------------------------------
  10. # gen
  11. gen: gen_lv2 gen_vst
  12. gen_lv2:
  13. @./scripts/generate-cabbage-lv2.sh
  14. @./scripts/generate-ttl.sh
  15. gen_vst:
  16. @./scripts/generate-cabbage-vst.sh
  17. # -----------------------------------------
  18. # install
  19. install:
  20. # make dirs
  21. install -d $(DESTDIR)$(PREFIX)/lib/lv2/
  22. install -d $(DESTDIR)$(PREFIX)/lib/vst/
  23. # install plugins
  24. ifneq (,$(wildcard bin/lv2/TheFunction.lv2))
  25. cp -r bin/lv2/*.lv2/ $(DESTDIR)$(PREFIX)/lib/lv2/
  26. endif
  27. ifneq (,$(wildcard bin/vst/TheFunction.so))
  28. cp -r bin/vst/* $(DESTDIR)$(PREFIX)/lib/vst/
  29. endif
  30. # -----------------------------------------
  31. # clean
  32. clean:
  33. $(MAKE) clean -C ports
  34. rm -rf bin/lv2/*.lv2/
  35. rm -rf bin/lv2-extra/
  36. rm -rf bin/vst-extra/
  37. distclean: clean
  38. $(MAKE) distclean -C ports
  39. # -----------------------------------------
  40. # Custom build types
  41. lv2:
  42. $(MAKE) -C ports lv2
  43. $(MAKE) gen_lv2
  44. vst:
  45. $(MAKE) -C ports vst
  46. $(MAKE) gen_vst