some more...
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 27 Feb 2011 12:34:44 +0000 (12:34 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Sun, 27 Feb 2011 12:34:44 +0000 (12:34 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@739 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

Makefile

index 89dcd00..ef79903 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -41,6 +41,7 @@ XPAT=xmlpatterns
 
 QTDIR=$(shell $(QMAKE) -query QT_INSTALL_PREFIX)
 QTBIN=$(shell $(QMAKE) -query QT_INSTALL_BINS)
+QTTRANS=$(shell $(QMAKE) -query QT_INSTALL_TRANSLATIONS)
 
 none:
        @echo "Usage: $(MAKE) target"
@@ -153,7 +154,9 @@ debug: client server
 
 macosx: MYMAKE=xcodebuild
 macosx: client server lrelease
-       cd src && cp *.qm msmoke.app/Contents/MacOS && macdeployqt -dmg msmoke.app
+       cd src && cp *.qm msmoke.app/Contents/MacOS && \
+        for i in *.qm ; do $(QTTRANS)/qt${i#smoke} msmoke.app/Contents/MacOS ; done && \
+        macdeployqt -dmg msmoke.app
 
 
 nsis: script client