Audio plugin host https://kx.studio/carla
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.

143 lines
4.5KB

  1. #!/usr/bin/make -f
  2. # Makefile for carla-frontend #
  3. # --------------------------- #
  4. # Created by falkTX
  5. #
  6. CWD=..
  7. include $(CWD)/Makefile.mk
  8. # ---------------------------------------------------------------------------------------------------------------------
  9. BINDIR := $(CWD)/../bin
  10. RESDIR := $(CWD)/../resources
  11. # ---------------------------------------------------------------------------------------------------------------------
  12. # Translations
  13. TSs = $(patsubst %,translations/carla_%.ts,$(I18N_LANGUAGES))
  14. QMs = $(patsubst %,translations/carla_%.qm,$(I18N_LANGUAGES))
  15. # ---------------------------------------------------------------------------------------------------------------------
  16. # Resources
  17. RES = \
  18. resources_rc.py \
  19. $(BINDIR)/resources/modgui \
  20. $(BINDIR)/resources/patchcanvas \
  21. $(BINDIR)/resources/widgets \
  22. $(BINDIR)/resources/bigmeter-ui \
  23. $(BINDIR)/resources/carla-plugin \
  24. $(BINDIR)/resources/carla-plugin-patchbay \
  25. $(BINDIR)/resources/carla_app.py \
  26. $(BINDIR)/resources/carla_backend.py \
  27. $(BINDIR)/resources/carla_backend_qt.py \
  28. $(BINDIR)/resources/carla_control.py \
  29. $(BINDIR)/resources/carla_database.py \
  30. $(BINDIR)/resources/carla_host.py \
  31. $(BINDIR)/resources/carla_modgui.py \
  32. $(BINDIR)/resources/carla_settings.py \
  33. $(BINDIR)/resources/carla_skin.py \
  34. $(BINDIR)/resources/carla_shared.py \
  35. $(BINDIR)/resources/carla_utils.py \
  36. $(BINDIR)/resources/carla_widgets.py \
  37. $(BINDIR)/resources/externalui.py \
  38. $(BINDIR)/resources/midipattern-ui \
  39. $(BINDIR)/resources/notes-ui \
  40. $(BINDIR)/resources/resources_rc.py \
  41. $(BINDIR)/resources/ui_carla_about.py \
  42. $(BINDIR)/resources/ui_carla_about_juce.py \
  43. $(BINDIR)/resources/ui_carla_add_jack.py \
  44. $(BINDIR)/resources/ui_carla_database.py \
  45. $(BINDIR)/resources/ui_carla_edit.py \
  46. $(BINDIR)/resources/ui_carla_host.py \
  47. $(BINDIR)/resources/ui_carla_osc_connect.py \
  48. $(BINDIR)/resources/ui_carla_parameter.py \
  49. $(BINDIR)/resources/ui_carla_plugin_calf.py \
  50. $(BINDIR)/resources/ui_carla_plugin_classic.py \
  51. $(BINDIR)/resources/ui_carla_plugin_compact.py \
  52. $(BINDIR)/resources/ui_carla_plugin_default.py \
  53. $(BINDIR)/resources/ui_carla_plugin_presets.py \
  54. $(BINDIR)/resources/ui_carla_refresh.py \
  55. $(BINDIR)/resources/ui_carla_settings.py \
  56. $(BINDIR)/resources/ui_carla_settings_driver.py \
  57. $(BINDIR)/resources/ui_inputdialog_value.py \
  58. $(BINDIR)/resources/ui_midipattern.py
  59. ifneq ($(SKIP_ZYN_SYNTH),true)
  60. ifeq ($(HAVE_ZYN_UI_DEPS),true)
  61. RES += \
  62. $(BINDIR)/resources/zynaddsubfx \
  63. $(BINDIR)/resources/zynaddsubfx-ui
  64. endif
  65. endif
  66. # ---------------------------------------------------------------------------------------------------------------------
  67. # UI code
  68. UIs = \
  69. ui_carla_about.py \
  70. ui_carla_about_juce.py \
  71. ui_carla_add_jack.py \
  72. ui_carla_database.py \
  73. ui_carla_edit.py \
  74. ui_carla_host.py \
  75. ui_carla_osc_connect.py \
  76. ui_carla_parameter.py \
  77. ui_carla_plugin_calf.py \
  78. ui_carla_plugin_classic.py \
  79. ui_carla_plugin_compact.py \
  80. ui_carla_plugin_default.py \
  81. ui_carla_plugin_presets.py \
  82. ui_carla_refresh.py \
  83. ui_carla_settings.py \
  84. ui_carla_settings_driver.py \
  85. ui_inputdialog_value.py \
  86. ui_midipattern.py
  87. # ---------------------------------------------------------------------------------------------------------------------
  88. all: $(QMs) $(RES) $(UIs)
  89. # ---------------------------------------------------------------------------------------------------------------------
  90. ui_%.py: $(RESDIR)/ui/%.ui
  91. $(PYUIC) $< -o $@
  92. resources_rc.py: $(RESDIR)/resources.qrc $(RESDIR)/*/*.png $(RESDIR)/*/*.svg $(RESDIR)/*/*.svgz
  93. $(PYRCC) $< -o $@
  94. $(BINDIR)/resources/%: %
  95. -@mkdir -p $(BINDIR)/resources
  96. $(LINK) $(CURDIR)/$* $(BINDIR)/resources/
  97. $(BINDIR)/resources/zynaddsubfx: ../native-plugins/resources/zynaddsubfx
  98. -@mkdir -p $(BINDIR)/resources
  99. $(LINK) $(CURDIR)/$< $(BINDIR)/resources/
  100. $(BINDIR)/resources/zynaddsubfx-ui: ../native-plugins/resources/zynaddsubfx-ui
  101. -@mkdir -p $(BINDIR)/resources
  102. $(LINK) $(CURDIR)/$< $(BINDIR)/resources/
  103. # ---------------------------------------------------------------------------------------------------------------------
  104. clean:
  105. rm -rf $(UIs) $(RES) $(QMs) __pycache__ *.pyc
  106. debug:
  107. $(MAKE) DEBUG=true
  108. # ---------------------------------------------------------------------------------------------------------------------
  109. i18n_update: $(TSs)
  110. i18n_release: $(QMs)
  111. translations/%.ts:
  112. @install -d translations
  113. pylupdate5 *.py $(RESDIR)/ui/*.ui -ts $@
  114. %.qm: %.ts
  115. lrelease $< -qm $@
  116. # ---------------------------------------------------------------------------------------------------------------------