Skip to content

Commit 8ddac4c

Browse files
committed
Move validation results to illustration base directory
This lets the illustration-nosrc.mk file be a consistent mechanism for generating validation results. Signed-off-by: Alex Nelson <[email protected]>
1 parent 175c564 commit 8ddac4c

File tree

3 files changed

+9
-29
lines changed

3 files changed

+9
-29
lines changed

examples/illustrations/src/illustration-basedir.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ all:
2323
--directory src
2424
cp src/generated-README.md README.md
2525
cp src/generated-inference.json inference.json
26+
$(MAKE) \
27+
--file ../src/illustration-nosrc.mk
2628

2729
check:
2830
$(MAKE) \
@@ -32,6 +34,9 @@ check:
3234
$(MAKE) \
3335
--directory src \
3436
check
37+
$(MAKE) \
38+
--file ../src/illustration-nosrc.mk \
39+
check
3540
diff \
3641
src/generated-inference.json \
3742
inference.json \
@@ -42,6 +47,9 @@ check:
4247
|| (echo "UPDATE:examples/illustrations/inference/Makefile:The generated README.md does not match the Git-tracked README.md. If the above reported changes look fine, run 'cp src/generated-README.md README.md' to get a file ready to commit to Git." >&2 ; exit 1)
4348

4449
clean:
50+
@$(MAKE) \
51+
--file ../src/illustration-nosrc.mk \
52+
clean
4553
@$(MAKE) \
4654
--directory src \
4755
clean

examples/illustrations/src/illustration-src.mk

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ SHELL := /bin/bash
1515

1616
top_srcdir := $(shell cd ../../../.. ; pwd)
1717

18-
RDF_TOOLKIT_JAR := $(top_srcdir)/dependencies/CASE-Utilities-Python/dependencies/CASE/lib/rdf-toolkit.jar
19-
2018
illustration_name := $(shell cd .. ; basename $$PWD)
2119
illustration_snippets_json := $(wildcard $(illustration_name)-*.json)
2220
query_sparql_files := $(wildcard query-*.sparql)
@@ -28,42 +26,16 @@ generated_readme_sed_sources := \
2826
$(query_sparql_files)
2927

3028
all: \
31-
$(illustration_name)_validation.ttl \
3229
generated-README.md
3330

3431
.PHONY: \
3532
normalize
3633

37-
$(illustration_name)_validation.ttl: \
38-
generated-$(illustration_name).json \
39-
../drafting.ttl \
40-
$(RDF_TOOLKIT_JAR) \
41-
$(top_srcdir)/.venv.done.log
42-
rm -f __$@
43-
source $(top_srcdir)/venv/bin/activate \
44-
&& case_validate \
45-
--format turtle \
46-
--ontology-graph ../drafting.ttl \
47-
--output __$@ \
48-
$< \
49-
; rc=$$? ; test 0 -eq $$rc -o 1 -eq $$rc
50-
test -s __$@
51-
java -jar $(RDF_TOOLKIT_JAR) \
52-
--inline-blank-nodes \
53-
--source __$@ \
54-
--source-format turtle \
55-
--target _$@ \
56-
--target-format turtle
57-
rm __$@
58-
mv _$@ $@
59-
60-
check: \
61-
$(illustration_name)_validation.ttl
34+
check:
6235

6336
clean:
6437
@rm -f \
6538
*.sed \
66-
$(illustration_name)_validation.ttl \
6739
.normalized-* \
6840
generated-* \
6941
query-*.md

0 commit comments

Comments
 (0)