summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2023-04-13 10:36:57 +0300
committerPanu Matilainen <pmatilai@redhat.com>2023-04-13 10:36:57 +0300
commit2e25f20f0d4e46cea534e5a5a81a9b1eee02240c (patch)
treef45fd455d76fc6ea21cb92daf785c48bf8919a56
parentc32ad282bfed2e236dde024b5f90c75d55598c4e (diff)
downloadrpm-2e25f20f0d4e46cea534e5a5a81a9b1eee02240c.tar.gz
Have dist (and snapshot) targets automatically pull in the po submodule
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3550c1796..f052271c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -410,6 +410,9 @@ add_custom_target(ChangeLog
--output=${CMAKE_BINARY_DIR}/ChangeLog
)
+add_custom_command(OUTPUT po/rpm.pot
+ COMMAND git submodule update --init)
+
function(add_tarball targetname namever treeish)
set(distfmt tar)
set(tarname ${namever}.${distfmt})
@@ -428,7 +431,7 @@ function(add_tarball targetname namever treeish)
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
BYPRODUCTS ${distname} ${docname}
VERBATIM
- DEPENDS ChangeLog ${docname}
+ DEPENDS ChangeLog ${docname} po/rpm.pot
COMMAND git archive
--format=${distfmt}
--output=${CMAKE_BINARY_DIR}/${tarname}