Debian Codegraph @

tests/sparql/SyntaxDev/Makefile.am

raw
1 # -*- Mode: Makefile -*-
2 #
3 # Makefile.am - automake file for Rasqal SPARQL tests
4 #
5 # Copyright (C) 2005-2008, David Beckett http://www.dajobe.org/
6 # Copyright (C) 2005-2005, University of Bristol, UK http://www.bristol.ac.uk/
7 #
8 # This package is Free Software and part of Redland http://librdf.org/
9 #
10 # It is licensed under the following three licenses as alternatives:
11 # 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
12 # 2. GNU General Public License (GPL) V2 or any newer version
13 # 3. Apache License, V2.0 or any newer version
14 #
15 # You may not use this file except in compliance with at least one of
16 # the above three licenses.
17 #
18 # See LICENSE.html or LICENSE.txt at the top of this package for the
19 # complete terms and further detail along with the license texts for
20 # the licenses in COPYING.LIB, COPYING and LICENSE-2.0.txt respectively.
21 #
22
23 SUBDIRS=Syntax-SPARQL Syntax-SPARQL2 Syntax-SPARQL3
24
25 check-sparql-lexer: check-sparql-lexer-recursive
26
27 check-sparql-parser: check-sparql-parser-recursive
28
29 check-sparql-correct: check-sparql-correct-recursive
30
31 check-sparql-lexer-recursive check-sparql-parser-recursive check-sparql-correct-recursive:
32 @failcom='exit 1'; \
33 for f in x $$MAKEFLAGS; do \
34 case $$f in \
35 *=* | --[!k]*);; \
36 *k*) failcom='fail=yes';; \
37 esac; \
38 done; \
39 target=`echo $@ | sed s/-recursive//`; \
40 list='$(SUBDIRS)'; for subdir in $$list; do \
41 echo "Making $$target in $$subdir"; \
42 if test "$$subdir" != "."; then \
43 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target ) \
44 || eval $$failcom; \
45 fi; \
46 done; \
47 test -z "$$fail"