diff options
Diffstat (limited to 'src/ee/tools/templates')
-rw-r--r-- | src/ee/tools/templates/build.ninja.j2 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/ee/tools/templates/build.ninja.j2 b/src/ee/tools/templates/build.ninja.j2 index c68f505..492363d 100644 --- a/src/ee/tools/templates/build.ninja.j2 +++ b/src/ee/tools/templates/build.ninja.j2 @@ -1,4 +1,5 @@ {% set reports=[] -%} +{% set datasheets=[] -%} ee = {{ ee }} uuid = {{ project.uuid }} public_dir = {{ project.public_dir }} @@ -49,6 +50,9 @@ rule part-apply-souffle-post rule part-find-requirements command = $ee part-find-requirements {{ log }} --in $in --out $out $report +rule part-download-datasheets + command = $ee part-download-datasheets --in $in --destination $dir --index $out + rule part-validate-parts command = $ee part-validate-parts {{ log }} --bom $bom --sch $sch --report $out --part-db $part_dbs @@ -135,6 +139,10 @@ build $public_dir/{{ s.key }}/pn-part-search-list.xml: pn-part-search-list $publ build $public_dir/{{ s.key }}/downloaded.xml | $public_dir/{{ s.key }}/downloaded.rst: {{ s.key }}-search-parts $public_dir/{{ s.key }}/pn-part-search-list.xml {%- set reports=reports+["$report_dir/" + s.key + "/downloaded.rst"] %} +build $public_dir/{{ s.key }}/datasheets.xml: part-download-datasheets $public_dir/{{ s.key }}/downloaded.xml + dir = $public_dir/{{ s.key }}/datasheets +{%- set _=datasheets.append("$public_dir/" + s.key + "/datasheets.xml") %} + {# build $public_dir/{{ s.key }}/parts.xml: part-apply-function $public_dir/{{ s.key }}/downloaded.xml execution = {{ s.key }} @@ -206,6 +214,7 @@ default ee.ninja # Reports build ee-reports: phony {{ " ".join(reports) }} +build ee-download-datasheets: phony {{ " ".join(datasheets) }} build ee-part-dbs: phony {%- for s in suppliers %} {{ s.part_db }}{% endfor %} build ee-orders: phony {%- for s in suppliers %} {{ s.bom_output }}{% endfor %} -build ee-all: phony ee-reports ee-orders +build ee-all: phony ee-reports ee-download-datasheets ee-part-dbs ee-orders |