[latexila] CMake: mkdir with -p
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] CMake: mkdir with -p
- Date: Tue, 19 Jul 2011 13:36:33 +0000 (UTC)
commit d1129decfc76b7235582d74a8f2dfd488fe4fad4
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Tue Jul 19 15:26:58 2011 +0200
CMake: mkdir with -p
The "make clean" doesn't remove the directories created with mkdir. So
if we do:
$ make
$ make clean
$ make
Now there is no error.
cmake/itstool.cmake | 2 +-
data/templates/CMakeLists.txt | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/cmake/itstool.cmake b/cmake/itstool.cmake
index 3db65a8..c97951d 100644
--- a/cmake/itstool.cmake
+++ b/cmake/itstool.cmake
@@ -28,7 +28,7 @@ function (itstool target_name src_dir tmp_dir install_dir)
add_custom_command (
OUTPUT ${lang_files}
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo_file} ${po_file}
- COMMAND mkdir ${tmp_dir}/${lang}
+ COMMAND mkdir -p ${tmp_dir}/${lang}
COMMAND itstool -m ${mo_file} -o ${tmp_dir}/${lang}/ ${path_files}
DEPENDS ${po_file}
)
diff --git a/data/templates/CMakeLists.txt b/data/templates/CMakeLists.txt
index ead87fd..1078740 100644
--- a/data/templates/CMakeLists.txt
+++ b/data/templates/CMakeLists.txt
@@ -24,7 +24,7 @@ endforeach ()
# Generate the *.tex files from the *.xml
add_custom_command (
OUTPUT ${lang_files}
- COMMAND mkdir ${tmp_dir}/${lang}
+ COMMAND mkdir -p ${tmp_dir}/${lang}
COMMAND ${src_dir}/gen_tex.sh ${src_dir}/${lang} ${tmp_dir}/${lang}
DEPENDS ${path_files}
)
@@ -54,7 +54,7 @@ foreach (po_file ${po_files})
add_custom_command (
OUTPUT ${lang_files}
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} -o ${mo_file} ${po_file}
- COMMAND mkdir ${tmp_dir}/${lang}-xml ${tmp_dir}/${lang}
+ COMMAND mkdir -p ${tmp_dir}/${lang}-xml ${tmp_dir}/${lang}
COMMAND itstool -i ${src_dir}/templates.its -m ${mo_file} -o ${tmp_dir}/${lang}-xml/ ${path_files}
COMMAND ${src_dir}/gen_tex.sh ${tmp_dir}/${lang}-xml ${tmp_dir}/${lang}
DEPENDS ${po_file}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]