From 0da3a1d73e2b407047bfedfb4f085fb8df067a19 Mon Sep 17 00:00:00 2001 From: Orcan Ogetbil Date: Sun, 12 Dec 2010 12:01:24 +0000 Subject: Added proper dependencies to the translations target. --- muse2/share/locale/CMakeLists.txt | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'muse2/share/locale/CMakeLists.txt') diff --git a/muse2/share/locale/CMakeLists.txt b/muse2/share/locale/CMakeLists.txt index 915ffd52..454ed830 100644 --- a/muse2/share/locale/CMakeLists.txt +++ b/muse2/share/locale/CMakeLists.txt @@ -26,8 +26,38 @@ else (UPDATE_TRANSLATIONS) qt4_add_translation(QM_FILES ${TRANSLATIONS_FILES}) endif (UPDATE_TRANSLATIONS) -add_custom_target (translations DEPENDS ${QM_FILES}) -#add_dependencies(translations muse) +add_custom_target (translations ALL DEPENDS ${QM_FILES}) + +# If we are updating the translations, make sure that these targets +# are scanned first +if (UPDATE_TRANSLATIONS) + add_dependencies(translations + muse + arranger + cliplist + ctrl + driver + instruments + liste + marker + master + midiedit + mixer + mplugins + remote + waveedit + widgets + awl + deicsonze + fluid + fluidsynth + libsynti + organ + s1 + simpledrums2 + vam + ) +endif (UPDATE_TRANSLATIONS) #install_files( /${SHARE_INSTALL_PREFIX}/${MusE_INSTALL_NAME}/locale .*\\.qm ) install(FILES ${QM_FILES} DESTINATION -- cgit v1.2.3