@@ -85,7 +85,10 @@ GENERATED = \
8585 schemas/xbrl/utr/volume-item-type-normative.json \
8686 schemas/xbrl/utr/volume-item-type.json \
8787 schemas/xbrl/utr/volume-per-monetary-item-type-normative.json \
88- schemas/xbrl/utr/volume-per-monetary-item-type.json
88+ schemas/xbrl/utr/volume-per-monetary-item-type.json \
89+ schemas/iso/country/2020/alpha-2.json \
90+ schemas/iso/country/2020/alpha-3.json \
91+ schemas/iso/country/2020/numeric.json
8992
9093# TODO: Make `jsonschema fmt` automatically detect test files
9194all : common test
@@ -113,25 +116,37 @@ lint: common
113116test :
114117 $(JSONSCHEMA ) test ./test
115118
116- build/iso/currency/list-% .json : scripts/xml2json.py vendor/data/iso/currency/list-% .xml
119+ build/iso/currency/list-% .json : \
120+ scripts/xml2json.py \
121+ vendor/data/iso/currency/list-%.xml
117122 $(PYTHON ) $< $(word 2,$^ ) $@
118- schemas/iso/currency/2015/historical/alpha-code.json : build/iso/currency/list-three.json templates/iso/currency/2015/historical/alpha-code.jq
123+ schemas/iso/currency/2015/historical/alpha-code.json : \
124+ build/iso/currency/list-three.json \
125+ templates/iso/currency/2015/historical/alpha-code.jq
119126 $(MKDIRP ) $(dir $@ )
120127 $(JQ ) --from-file $(word 2,$^ ) $< > $@
121128 $(JSONSCHEMA ) fmt $@
122- schemas/iso/currency/2015/historical/alpha-currency.json : build/iso/currency/list-three.json templates/iso/currency/2015/historical/alpha-currency.jq
129+ schemas/iso/currency/2015/historical/alpha-currency.json : \
130+ build/iso/currency/list-three.json \
131+ templates/iso/currency/2015/historical/alpha-currency.jq
123132 $(MKDIRP ) $(dir $@ )
124133 $(JQ ) --from-file $(word 2,$^ ) $< > $@
125134 $(JSONSCHEMA ) fmt $@
126- schemas/iso/currency/2015/historical/numeric-code.json : build/iso/currency/list-three.json templates/iso/currency/2015/historical/numeric-code.jq
135+ schemas/iso/currency/2015/historical/numeric-code.json : \
136+ build/iso/currency/list-three.json \
137+ templates/iso/currency/2015/historical/numeric-code.jq
127138 $(MKDIRP ) $(dir $@ )
128139 $(JQ ) --from-file $(word 2,$^ ) $< > $@
129140 $(JSONSCHEMA ) fmt $@
130- schemas/iso/currency/2015/historical/numeric-currency.json : build/iso/currency/list-three.json templates/iso/currency/2015/historical/numeric-currency.jq
141+ schemas/iso/currency/2015/historical/numeric-currency.json : \
142+ build/iso/currency/list-three.json \
143+ templates/iso/currency/2015/historical/numeric-currency.jq
131144 $(MKDIRP ) $(dir $@ )
132145 $(JQ ) --from-file $(word 2,$^ ) $< > $@
133146 $(JSONSCHEMA ) fmt $@
134- schemas/iso/currency/2015/% .json : build/iso/currency/list-one.json templates/iso/currency/2015/% .jq
147+ schemas/iso/currency/2015/% .json : \
148+ build/iso/currency/list-one.json \
149+ templates/iso/currency/2015/%.jq
135150 $(MKDIRP ) $(dir $@ )
136151 $(JQ ) --from-file $(word 2,$^ ) $< > $@
137152 $(JSONSCHEMA ) fmt $@
@@ -144,10 +159,12 @@ schemas/xbrl/utr/%.json: build/xbrl/utr/utr.json templates/xbrl/utr/%.jq
144159 $(JQ ) --from-file $(word 2,$^ ) $< > $@
145160 $(JSONSCHEMA ) fmt $@
146161
147- generate-iso-language : generate/iso/language/main.py
148- $(PYTHON ) $<
149- generate-iso-country : generate/iso/country/main.py
150- $(PYTHON ) $<
162+ schemas/iso/country/2020/% .json : \
163+ vendor/iso3166/all/all.json \
164+ templates/iso/country/2020/%.jq
165+ $(MKDIRP ) $(dir $@ )
166+ $(JQ ) --from-file $(word 2,$^ ) $< > $@
167+ $(JSONSCHEMA ) fmt $@
151168
152169
153170# TODO: Add a `jsonschema pkg` command instead
0 commit comments