[dia: 34/105] #19: Use 'targets' instead of 'output files' as custom_target inputs.



commit 2cd7b2e424a27247e752953440a4fa562590d2f1
Author: eduard <eduard diabuild my.domain>
Date:   Fri Dec 28 10:12:42 2018 +0000

    #19: Use 'targets' instead of 'output files' as custom_target inputs.
    
      - Using unexisting files as target will be disallowed by future meson
        versions.

 sheets/meson.build | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/sheets/meson.build b/sheets/meson.build
index 466a62fc..ddbb7103 100644
--- a/sheets/meson.build
+++ b/sheets/meson.build
@@ -96,6 +96,7 @@ if false
     sheet_files += ['Sozi.sheet']
 endif
 
+sheet_files_targets = []
 # FIXME: use gettext:
 # https://github.com/mesonbuild/meson/issues/1565
 # https://github.com/systemd/systemd/commit/c81217920effddc93fb780cf8f9eb699d6fe1319
@@ -103,7 +104,7 @@ endif
 # https://www.gnu.org/software/gettext/manual/html_node/Preparing-ITS-Rules.html
 # https://www.w3.org/TR/its20/ (2013) standard!
 foreach sheet : sheet_files
-    custom_target(
+    sheet_files_targets += custom_target(
         sheet,
         input : sheet + '.in',
         output : sheet,
@@ -118,7 +119,7 @@ checktrans_py = find_program('checktrans.py')
 custom_target(
     'sheet-translation-report',
     build_by_default :  false,  # Currently broken anyway.
-    input : sheet_files,
+    input : sheet_files_targets,
     output : 'sheet-translation-report',
     command : [checktrans_py, '@INPUT@'],
     capture : true


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]