Skip to content

Commit 04ec1d0

Browse files
committed
Add reports to language build
1 parent df50b71 commit 04ec1d0

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Makefile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ LANGS := es
889889
DOLANG := src/ontology/releases/translations/doid
890890

891891
.PHONY: translations international $(LANGS)
892-
translations: $(LANGS) international
892+
translations: $(LANGS) international lang-reports
893893

894894
international: $(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 $< $@

0 commit comments

Comments
 (0)