[osinfo-db-tools PATCH 7/8] meson: Add ninja syntax-check

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

 



Let's take advantage of that we can run `make syntax-check` without the
need of having a Makefile around and add a `ninja syntax-check` target
that ends up calling `make syntax-check`.

Signed-off-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>
---
 build-aux/syntax-check.sh | 5 +++++
 meson.build               | 3 +++
 2 files changed, 8 insertions(+)
 create mode 100755 build-aux/syntax-check.sh

diff --git a/build-aux/syntax-check.sh b/build-aux/syntax-check.sh
new file mode 100755
index 0000000..3a58681
--- /dev/null
+++ b/build-aux/syntax-check.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+cd $MESON_SOURCE_ROOT
+
+make syntax-check
diff --git a/meson.build b/meson.build
index a057dfa..f5085fe 100644
--- a/meson.build
+++ b/meson.build
@@ -32,6 +32,9 @@ foreach spec: specs
     )
 endforeach
 
+# ninja syntax-check target
+run_target('syntax-check', command: 'build-aux/syntax-check.sh')
+
 # ninja dist helper
 meson.add_dist_script('build-aux/dist.sh', meson.source_root())
 
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux