File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -889,7 +889,7 @@ LANGS := es
889889DOLANG := src/ontology/releases/translations/doid
890890
891891.PHONY : translations international $(LANGS )
892- translations : $(LANGS ) international
892+ translations : $(LANGS ) international lang-reports
893893
894894international : $(DOLANG ) -international.owl
895895
@@ -982,4 +982,20 @@ $(DOLANG)-international.owl: $(DO).owl $(LANG_IMPORTS) $(LANG_ANNOTS) \
982982 $(patsubst %,--annotation dc11:language "%",$(LANGS)) \
983983 "$${ANNOT_ARRAY[@]}" \
984984 --output $@
985- @echo "Created $@"
985+ @echo "Created $@"
986+
987+ # ----------------------------------------
988+ # INTERNATIONAL REPORT
989+ # ----------------------------------------
990+
991+ LANG_QUERIES := $(wildcard src/sparql/build/intl-report-* .rq)
992+ LANG_REPORTS := $(foreach Q,$(LANG_QUERIES ) ,build/reports/$(basename $(notdir $(Q ) ) ) .tsv)
993+
994+ .PHONY : lang-reports
995+ lang-reports : $(LANG_REPORTS )
996+
997+ $(LANG_REPORTS ) : build/reports/% .tsv: src/sparql/build/% .rq $(DOLANG ) -international.owl | check_robot build/reports
998+ @echo " Counting: $( notdir $( basename $@ ) ) "
999+ @$(ROBOT ) query \
1000+ --input $(word 2,$^ ) \
1001+ --query $< $@
You can’t perform that action at this time.
0 commit comments