]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Perform syntax and semantic check for all bindings on "make check"
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 11:45:55 +0000 (13:45 +0200)
vapi/Makefile.am

index 3be96e1de7f54e4eca6df337ff6b9bb41dfefbca..27891f55ee976deedfb980621f900a01e0713c67 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 = \