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.

66 lines
1.2KB

  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 $(CURDIR)/bin/lv2/cabbage-Additive.lv2))
  25. cp -r bin/lv2/*.lv2/ $(DESTDIR)$(PREFIX)/lib/lv2/
  26. endif
  27. ifneq (,$(wildcard $(CURDIR)/bin/vst/cabbage-Additive.so))
  28. cp -r bin/vst/* $(DESTDIR)$(PREFIX)/lib/vst/
  29. endif
  30. # install protoplug files
  31. cp -r ports/protoplug/ProtoplugFiles $(DESTDIR)$(PREFIX)/share/
  32. # -----------------------------------------
  33. # clean
  34. clean:
  35. $(MAKE) clean -C ports
  36. rm -rf bin/lv2/*.lv2/
  37. rm -rf bin/lv2-extra/
  38. rm -rf bin/vst-extra/
  39. distclean: clean
  40. $(MAKE) distclean -C ports
  41. # -----------------------------------------
  42. # Custom build types
  43. lv2:
  44. $(MAKE) -C ports lv2
  45. $(MAKE) gen_lv2
  46. vst:
  47. $(MAKE) -C ports vst
  48. $(MAKE) gen_vst