chiark / gitweb /
build-sys: fix invalid args detected by meson 0.42 (#6561)
authoruserwithuid <userwithuid@gmail.com>
Wed, 9 Aug 2017 13:41:44 +0000 (13:41 +0000)
committerSven Eden <yamakuzure@gmx.net>
Thu, 10 Aug 2017 08:29:08 +0000 (10:29 +0200)
some run_target() calls were using params from custom_target()

example message:
WARNING: Passed invalid keyword argument "input". This will become a hard error in the future.

New way to call targets:
ninja man/man
ninja man/html
ninja man/update-man-rules

man/meson.build

index 8fdb512f686fd1a0813b192b674bd9920aec9c74..ea1227f2cf559e8b27ebe27630259ca776cb3054 100644 (file)
@@ -178,10 +178,10 @@ man = custom_target(
         depends : man_pages,
         command : ['echo'])
 
-html = run_target(
+html = custom_target(
         'html',
-        depends : html_pages,
         output : 'html',
+        depends : html_pages,
         command : ['echo'])
 
 #if 0 /// UNNEEDED in elogind
@@ -201,8 +201,9 @@ html = run_target(
 ############################################################
 
 if git.found()
-        run_target(
+        custom_target(
                 'update-man-rules',
+                output : 'update-man-rules',
                 # slightly strange syntax because of
                 # https://github.com/mesonbuild/meson/issues/1643
                 # and https://github.com/mesonbuild/meson/issues/1512