-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update testing to review current CASE Examples repository; remove out…
…-of-date submodules No effects were observed on Make-managed files. Signed-off-by: Alex Nelson <[email protected]>
- Loading branch information
1 parent
4c86247
commit 4c9400d
Showing
9 changed files
with
161 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule CASE-Examples
added at
ff586c
Submodule case
deleted from
c469f0
Submodule case-api-python
deleted from
a2d9f5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/usr/bin/make -f | ||
|
||
# Portions of this file contributed by NIST are governed by the | ||
# following statement: | ||
# | ||
# This software was developed at the National Institute of Standards | ||
# and Technology by employees of the Federal Government in the course | ||
# of their official duties. Pursuant to Title 17 Section 105 of the | ||
# United States Code, this software is not subject to copyright | ||
# protection within the United States. NIST assumes no responsibility | ||
# whatsoever for its use by other parties, and makes no guarantees, | ||
# expressed or implied, about its quality, reliability, or any other | ||
# characteristic. | ||
# | ||
# We would appreciate acknowledgement if the software is used. | ||
|
||
SHELL = /bin/bash | ||
|
||
subject_jsonld ?= | ||
ifeq ($(subject_jsonld),) | ||
$(error subject_jsonld must be specified) | ||
endif | ||
|
||
subject_dfxml := $(subst .json,.dfxml,$(shell basename $(subject_jsonld))) | ||
ifeq ($(subject_dfxml),) | ||
$(error subject_dfxml could not be computed from subject_jsonld=$(subject_jsonld)) | ||
endif | ||
|
||
top_srcdir := ../.. | ||
|
||
dfxml_xsd := $(top_srcdir)/deps/dfxml_schema/dfxml.xsd | ||
|
||
dfxml_top_srcdir := $(top_srcdir)/deps/dfxml | ||
|
||
objects_py_dependencies := \ | ||
$(dfxml_top_srcdir)/dfxml/__init__.py \ | ||
$(dfxml_top_srcdir)/dfxml/objects.py | ||
|
||
case_to_dfxml_dependencies := \ | ||
$(objects_py_dependencies) \ | ||
$(top_srcdir)/case_to_dfxml.py | ||
|
||
all: \ | ||
$(subject_dfxml) | ||
|
||
$(subject_dfxml): \ | ||
$(subject_jsonld) \ | ||
$(dfxml_xsd) \ | ||
$(case_to_dfxml_dependencies) \ | ||
../.venv.done.log | ||
rm -f __$@ _$@ | ||
source ../venv/bin/activate \ | ||
&& python ../../case_to_dfxml.py \ | ||
$< \ | ||
__$@ | ||
xmllint \ | ||
--format \ | ||
--schema $(dfxml_xsd) \ | ||
__$@ \ | ||
> _$@ | ||
rm __$@ | ||
mv _$@ $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters