diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-10-11 09:25:46 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-10-11 09:25:46 -0700 |
commit | 2e2212da5f7ad55ddf9295e39e77e158f489d402 (patch) | |
tree | 21a018297b89939e1a5209e47a437174f92f16f1 /subsurface-install.pri | |
parent | beb40ae4943cc76017c38eee678cae386f51854c (diff) | |
download | subsurface-2e2212da5f7ad55ddf9295e39e77e158f489d402.tar.gz |
Fix translation compilation
Now the Makefile should automatically detect when it needs to create a specific
.qm file and do the right thing to create it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-install.pri')
-rw-r--r-- | subsurface-install.pri | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/subsurface-install.pri b/subsurface-install.pri index ec208328c..5fcc15883 100644 --- a/subsurface-install.pri +++ b/subsurface-install.pri @@ -119,12 +119,10 @@ XSLTDIR = $(DATADIR)/subsurface else: QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease } isEmpty(TS_DIR):TS_DIR = translations - TSQM.target = .translations - TSQM.name = lrelease subsurface.pro - TSQM.depends = $$TRANSLATIONS + TSQM.input = TRANSLATIONS TSQM.output = $$TS_DIR/${QMAKE_FILE_BASE}.qm - TSQM.commands = $$QMAKE_LRELEASE subsurface.pro && echo "OK" > .translations - QMAKE_EXTRA_TARGETS += TSQM - PRE_TARGETDEPS += .translations + TSQM.CONFIG += no_link target_predeps + TSQM.commands = $$QMAKE_LRELEASE ${QMAKE_FILE_IN} -qm $$TS_DIR/${QMAKE_FILE_BASE}.qm + QMAKE_EXTRA_COMPILERS += TSQM } QMAKE_EXTRA_TARGETS += install $$install.depends |