Author: kornel
Date: Sun May 15 23:22:07 2011
New Revision: 38774
URL: http://www.lyx.org/trac/changeset/38774
Log:
Changed update_po_files - target to 'update-po'
Modified:
lyx-devel/trunk/po/CMakeLists.txt
Modified: lyx-devel/trunk/po/CMakeLists.txt
==============================================================================
--- lyx-devel/trunk/po/CMakeLists.txt Sun May 15 22:56:22 2011 (r38773)
+++ lyx-devel/trunk/po/CMakeLists.txt Sun May 15 23:22:07 2011 (r38774)
@@ -139,6 +139,7 @@
list(APPEND LYX_PO_FILES ${CMAKE_CURRENT_BINARY_DIR}/${_pofile})
endforeach(_pofile)
+set(LYX_UPDATED_PO_FILES)
foreach(_pofile ${LYX_BASE_PO_FILES})
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_pofile}.copied
@@ -154,9 +155,8 @@
endif()
GETTEXT_CREATE_TRANSLATIONS(${CMAKE_CURRENT_BINARY_DIR}/${_lyxname}.pot
${_addALLOption} ${LYX_PO_FILES})
+# Create a new target to remerge po files
# ALL omitted here, to prevent from automatic creation
-ADD_CUSTOM_TARGET(update_po_files DEPENDS ${LYX_UPDATED_PO_FILES})
-add_dependencies(update_po_files translations)
-
-# ADD_POFILES("lyx")
+ADD_CUSTOM_TARGET(update-po DEPENDS ${LYX_UPDATED_PO_FILES})
+add_dependencies(update-po translations)