Skip to content

Commit

Permalink
Generate stub for class outside CDO
Browse files Browse the repository at this point in the history
A follow-on patch will regenerate Make-managed files.

Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Sep 19, 2024
1 parent 774805a commit eba4aa9
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ top_srcdir := ..

all: \
InvestigativeAction.json \
ArchiveFile.json
ArchiveFile.json \
Bag.json

ArchiveFile.json: \
$(top_srcdir)/.venv.done.log \
Expand All @@ -39,6 +40,23 @@ ArchiveFile.json: \
rm __$@
mv _$@ $@

Bag.json: \
$(top_srcdir)/.venv.done.log \
$(top_srcdir)/src/generate_single_stub_json.py \
$(top_srcdir)/var/facet_cardinalities.ttl
rm -f __$@ _$@
source $(top_srcdir)/venv/bin/activate \
&& python $(top_srcdir)/src/generate_single_stub_json.py \
--debug \
__$@ \
http://purl.org/co/Bag \
$(top_srcdir)/var/facet_cardinalities.ttl
python3 -m json.tool \
__$@ \
_$@
rm __$@
mv _$@ $@

InvestigativeAction.json: \
$(top_srcdir)/.venv.done.log \
$(top_srcdir)/src/generate_single_stub_json.py \
Expand Down

0 comments on commit eba4aa9

Please sign in to comment.