|
| 1 | +#!/usr/bin/make -f |
| 2 | + |
| 3 | +# This software was developed at the National Institute of Standards |
| 4 | +# and Technology by employees of the Federal Government in the course |
| 5 | +# of their official duties. Pursuant to title 17 Section 105 of the |
| 6 | +# United States Code this software is not subject to copyright |
| 7 | +# protection and is in the public domain. NIST assumes no |
| 8 | +# responsibility whatsoever for its use by other parties, and makes |
| 9 | +# no guarantees, expressed or implied, about its quality, |
| 10 | +# reliability, or any other characteristic. |
| 11 | +# |
| 12 | +# We would appreciate acknowledgement if the software is used. |
| 13 | + |
| 14 | +SHELL := /bin/bash |
| 15 | + |
| 16 | +top_srcdir := $(shell cd ../.. ; pwd) |
| 17 | + |
| 18 | +case_srcdir := $(top_srcdir)/dependencies/CASE |
| 19 | + |
| 20 | +uco_srcdir := $(case_srcdir)/dependencies/UCO |
| 21 | + |
| 22 | +RDF_TOOLKIT_JAR := $(case_srcdir)/lib/rdf-toolkit.jar |
| 23 | + |
| 24 | +case_version := $(shell python3 version_info.py) |
| 25 | + |
| 26 | +all: \ |
| 27 | + case-$(case_version).ttl |
| 28 | + |
| 29 | +case-$(case_version).ttl: \ |
| 30 | + $(top_srcdir)/.git_submodule_init.done.log \ |
| 31 | + $(RDF_TOOLKIT_JAR) |
| 32 | + $(MAKE) \ |
| 33 | + --directory $(case_srcdir)/tests \ |
| 34 | + case_monolithic.ttl |
| 35 | + #TODO This cleanup step should be removed after the 0.3.0 release of CASE-Utility-SHACL-Inheritance-Reviewer. |
| 36 | + test ! -d $(uco_srcdir)/dependencies/CASE-Utility-SHACL-Inheritance-Reviewer/build \ |
| 37 | + || rm -rf \ |
| 38 | + $(uco_srcdir)/dependencies/CASE-Utility-SHACL-Inheritance-Reviewer/build |
| 39 | + #TODO This normalization step will not be needed after resolution of ONT-445. |
| 40 | + java -jar $(RDF_TOOLKIT_JAR) \ |
| 41 | + --inline-blank-nodes \ |
| 42 | + --source $(case_srcdir)/tests/case_monolithic.ttl \ |
| 43 | + --source-format turtle \ |
| 44 | + --target _$@ \ |
| 45 | + --target-format turtle |
| 46 | + mv _$@ $@ |
| 47 | + |
| 48 | +clean: |
| 49 | + @rm -f case-$(case_version).ttl |
0 commit comments