]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Perform syntax and semantic check for all bindings on "make check" d9c368ae608060be76b3838aa38e3ede945fcb5b
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Oct 2019 09:15:04 +0000 (11:15 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Oct 2019 10:20:22 +0000 (12:20 +0200)
vapi/Makefile.am

index ef413a157b34663c752598de2ffd944e02cec490..6aa0ad8b8a35a48e9089bdd3ed0bb2458dd1b4ca 100644 (file)
@@ -1,5 +1,13 @@
 NULL =
 
+check: $(top_builddir)/compiler/valac
+       echo "void main () {}" > test.vala; \
+       for vapi in `ls *.vapi | sed -e "s/\.vapi//g"`; do \
+               echo "Checking $$vapi..."; \
+               $(top_builddir)/compiler/valac -C --pkg=$$vapi --vapidir=. test.vala || exit 1; \
+       done; \
+       rm -f test.vala test.c
+
 vapidir = $(pkgdatadir)/vapi
 
 dist_vapi_DATA = \