-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (29 loc) · 1.69 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
PROJECT = lagra
PROJECT_DESCRIPTION = RDF library for Erlang
PROJECT_VERSION = 0.2.0
TEST_DIR = ct
TESTS_ASSERTED_BY = <https://raw.githubusercontent.com/darkling/lagra/master/doap.ttl\#>
CT_OPTS = -ct_hooks ct_earl_hook "asserted_by=$(TESTS_ASSERTED_BY);subject=<https://raw.githubusercontent.com/darkling/lagra/master/doap.ttl\#>"
include erlang.mk
.PHONY: test-suites
test-suites: $(subst _data,.erl,$(wildcard ct/parser_*_SUITE_data)) \
$(subst _data,.erl,$(wildcard ct/serializer_*_SUITE_data)) \
ct/isomorphism_SUITE.erl
ct/parser_ntriples_w3_SUITE.erl: ct/parser_ntriples_w3_SUITE_data/manifest.ttl scripts/gen-parser-test-suite.sh
@echo " GENCT " $<
$(Q)@scripts/gen-parser-test-suite.sh $< $(notdir $(subst .erl,,$@)) \
"http://www.w3.org/2013/N-TriplesTests/manifest.ttl\#" >$@
ct/parser_nquads_w3_SUITE.erl: ct/parser_nquads_w3_SUITE_data/manifest.ttl scripts/gen-parser-test-suite.sh
@echo " GENCT " $<
$(Q)@scripts/gen-parser-test-suite.sh $< $(notdir $(subst .erl,,$@)) \
"http://www.w3.org/2013/N-QuadsTests/manifest.ttl\#" >$@
ct/parser_turtle_w3_SUITE.erl: ct/parser_turtle_w3_SUITE_data/manifest.ttl scripts/gen-parser-test-suite.sh
@echo " GENCT " $<
$(Q)@scripts/gen-parser-test-suite.sh $< $(notdir $(subst .erl,,$@)) \
"http://www.w3.org/2013/TurtleTests/manifest.ttl\#" >$@
ct/serializer_%_SUITE.erl: ct/serializer_%_SUITE_data/manifest.ttl scripts/gen-serializer-test-suite.sh
@echo " GENCT " $<
$(Q)@scripts/gen-serializer-test-suite.sh $< $(notdir $(subst .erl,,$@)) >$@
ct/isomorphism_SUITE.erl: ct/isomorphism_SUITE_data/manifest.ttl scripts/gen-parser-test-suite.sh
@echo " GENCT " $<
$(Q)@scripts/gen-parser-test-suite.sh $< $(notdir $(subst .erl,,$@)) "" >$@