ee = ../../../env/bin/python3 -m ee report_dir = ee/reports sch = ../../../thirdparty/unlockoslo/hardware/alpha-3/alpha.sch sch_files = ../../../thirdparty/unlockoslo/hardware/alpha-3/alpha.sch pcb = ../../../thirdparty/unlockoslo/hardware/alpha-3/alpha.kicad_pcb rule kicad-gerber description = kicad-gerber command = $ee kicad-gerber $ --output-dir $gerber_dir $ --pcb $pcb # mkdir -p $( # (cd $(GERBER_DIR); zip tmp.zip $(foreach GBR,$(GERBERS),$(notdir $(GBR)))) # mv $(GERBER_DIR)/tmp.zip $@ rule kicad-make-bom description = kicad-make-bom $out command = $ee kicad-make-bom --sch $sch --out $out $strategy rule part-create-distributor-search-list description = part-create-distributor-search-list distributor: $distributor command = $ee part-create-distributor-search-list --in $in --out $out rule digikey-search-parts description = digikey-search-parts command = $ee digikey-search-parts --in $in --out $out rule digikey-normalize-facts description = digikey-normalize-facts command = $ee digikey-normalize-facts --in $in --out $out rule element14-search-parts description = element14-search-parts command = $ee element14-search-parts --in $in --out $out rule element14-normalize-facts description = element14-normalize-facts command = $ee element14-normalize-facts --in $in --out $out rule create-bom description = create-bom command = $ee create-bom --schematic $schematic --part-db $part_dbs --out $out $strategy rule import-parts-yaml description = import-parts-yaml $in command = $ee import-parts-yaml --in $in --out $out build gerbers: phony prod/gerber.zip build prod/gerber.zip: kicad-gerber $pcb gerber_dir = prod build ee/sch.xml: kicad-make-bom $sch # Distributor digikey build ee/digikey/search-list.xml: part-create-distributor-search-list ee/sch.xml distributor = digikey build ee/digikey/downloaded.xml: digikey-search-parts ee/digikey/search-list.xml build ee/digikey/normalized.xml: digikey-normalize-facts ee/digikey/downloaded.xml default ee/digikey/normalized.xml build ee/bom.xml | $report_dir/bom.rst: create-bom ee/sch.xml ee/digikey/normalized.xml schematic = ee/sch.xml part_dbs = ee/digikey/normalized.xml default ee/bom.xml rule seeed-download-opl description = seeed-download-opl $opl command = $ee seeed-download-opl --out $out --opl $opl build seeed-download-opls: phony ee/seeed/opl/SEEED.xml ee/seeed/opl/HQCHIP.xml build ee/seeed/opl/SEEED.xml: seeed-download-opl opl = SEEED build ee/seeed/opl/HQCHIP.xml: seeed-download-opl opl = HQCHIP