|
|
@@ -12,6 +12,12 @@ include $(CWD)/Makefile.mk |
|
|
|
BINDIR := $(CWD)/../bin |
|
|
|
RESDIR := $(CWD)/../resources |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Translations |
|
|
|
|
|
|
|
TSs = $(patsubst %,translations/carla_%.ts,$(I18N_LANGUAGES)) |
|
|
|
QMs = $(patsubst %,translations/carla_%.qm,$(I18N_LANGUAGES)) |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
# Resources |
|
|
|
|
|
|
@@ -91,7 +97,7 @@ UIs = \ |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
all: $(RES) $(UIs) |
|
|
|
all: $(QMs) $(RES) $(UIs) |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
@@ -116,9 +122,21 @@ $(BINDIR)/resources/zynaddsubfx-ui: ../native-plugins/resources/zynaddsubfx-ui |
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
clean: |
|
|
|
rm -rf $(UIs) $(RES) __pycache__ *.pyc |
|
|
|
rm -rf $(UIs) $(RES) $(QMs) __pycache__ *.pyc |
|
|
|
|
|
|
|
debug: |
|
|
|
$(MAKE) DEBUG=true |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
|
|
i18n_update: $(TSs) |
|
|
|
i18n_release: $(QMs) |
|
|
|
|
|
|
|
translations/%.ts: |
|
|
|
@install -d translations |
|
|
|
pylupdate5 *.py $(RESDIR)/ui/*.ui -ts $@ |
|
|
|
|
|
|
|
%.qm: %.ts |
|
|
|
lrelease $< -qm $@ |
|
|
|
|
|
|
|
# --------------------------------------------------------------------------------------------------------------------- |