Automation: re-plot cases when files are changed

This commit is contained in:
Pierre Chevalier 2021-04-19 23:54:03 +01:00
parent af15fbb7a1
commit 1b25d5aa98
2 changed files with 22 additions and 8 deletions

View File

@ -318,6 +318,7 @@ def add_edge_cuts_rule(ninja, reldir, basename):
command=[f"mkdir -p {out_dir} && {kiplot} -b {board} -c {config} -d {out_dir}"],
)
ninja.build(
inputs=[board, config],
outputs=[make_output_file_path(reldir, f"{basename}-Edge_Cuts.dxf"),
make_output_file_path(reldir, f"{basename}-Edge_Cuts.svg")],
rule=edge_cuts_rule,

View File

@ -517,7 +517,9 @@ rule 0_2_bling_cases_mid_profile_left_switch_plate_edge_cuts
.kiplot.edge_cuts.yml -d build/0.2/bling/cases/mid_profile
build build/0.2/bling/cases/mid_profile/left_switch_plate-Edge_Cuts.dxf $
build/0.2/bling/cases/mid_profile/left_switch_plate-Edge_Cuts.svg: $
0_2_bling_cases_mid_profile_left_switch_plate_edge_cuts
0_2_bling_cases_mid_profile_left_switch_plate_edge_cuts $
0.2/bling/cases/mid_profile/left_switch_plate.kicad_pcb $
.kiplot.edge_cuts.yml
rule 0_2_bling_cases_mid_profile_right_switch_plate_drc
command = ./automation/run_drc.sh $
@ -545,7 +547,9 @@ rule 0_2_bling_cases_mid_profile_right_switch_plate_edge_cuts
.kiplot.edge_cuts.yml -d build/0.2/bling/cases/mid_profile
build build/0.2/bling/cases/mid_profile/right_switch_plate-Edge_Cuts.dxf $
build/0.2/bling/cases/mid_profile/right_switch_plate-Edge_Cuts.svg: $
0_2_bling_cases_mid_profile_right_switch_plate_edge_cuts
0_2_bling_cases_mid_profile_right_switch_plate_edge_cuts $
0.2/bling/cases/mid_profile/right_switch_plate.kicad_pcb $
.kiplot.edge_cuts.yml
rule 0_2_bling_cases_mid_profile_lip_drc
command = ./automation/run_drc.sh 0.2/bling/cases/mid_profile/lip.kicad_pcb
@ -570,7 +574,8 @@ rule 0_2_bling_cases_mid_profile_lip_edge_cuts
build/0.2/bling/cases/mid_profile
build build/0.2/bling/cases/mid_profile/lip-Edge_Cuts.dxf $
build/0.2/bling/cases/mid_profile/lip-Edge_Cuts.svg: $
0_2_bling_cases_mid_profile_lip_edge_cuts
0_2_bling_cases_mid_profile_lip_edge_cuts $
0.2/bling/cases/mid_profile/lip.kicad_pcb .kiplot.edge_cuts.yml
rule 0_2_bling_cases_mid_profile_bottom_plate_puck_drc
command = ./automation/run_drc.sh $
@ -598,7 +603,9 @@ rule 0_2_bling_cases_mid_profile_bottom_plate_puck_edge_cuts
.kiplot.edge_cuts.yml -d build/0.2/bling/cases/mid_profile
build build/0.2/bling/cases/mid_profile/bottom_plate_puck-Edge_Cuts.dxf $
build/0.2/bling/cases/mid_profile/bottom_plate_puck-Edge_Cuts.svg: $
0_2_bling_cases_mid_profile_bottom_plate_puck_edge_cuts
0_2_bling_cases_mid_profile_bottom_plate_puck_edge_cuts $
0.2/bling/cases/mid_profile/bottom_plate_puck.kicad_pcb $
.kiplot.edge_cuts.yml
rule 0_2_bling_cases_mid_profile_bottom_plate_no_puck_drc
command = ./automation/run_drc.sh $
@ -626,7 +633,9 @@ rule 0_2_bling_cases_mid_profile_bottom_plate_no_puck_edge_cuts
.kiplot.edge_cuts.yml -d build/0.2/bling/cases/mid_profile
build build/0.2/bling/cases/mid_profile/bottom_plate_no_puck-Edge_Cuts.dxf $
build/0.2/bling/cases/mid_profile/bottom_plate_no_puck-Edge_Cuts.svg: $
0_2_bling_cases_mid_profile_bottom_plate_no_puck_edge_cuts
0_2_bling_cases_mid_profile_bottom_plate_no_puck_edge_cuts $
0.2/bling/cases/mid_profile/bottom_plate_no_puck.kicad_pcb $
.kiplot.edge_cuts.yml
build 0.2/bling: phony build/0.2/bling/gerbers.zip $
build/0.2/bling/ferris_front.svg build/0.2/bling/ferris_back.svg $
@ -762,7 +771,8 @@ rule 0_2_compact_cases_low_profile_metal_plate_edge_cuts
.kiplot.edge_cuts.yml -d build/0.2/compact/cases/low_profile
build build/0.2/compact/cases/low_profile/metal_plate-Edge_Cuts.dxf $
build/0.2/compact/cases/low_profile/metal_plate-Edge_Cuts.svg: $
0_2_compact_cases_low_profile_metal_plate_edge_cuts
0_2_compact_cases_low_profile_metal_plate_edge_cuts $
0.2/compact/cases/low_profile/metal_plate.kicad_pcb .kiplot.edge_cuts.yml
rule 0_2_compact_cases_low_profile_cork_spacer_and_lip_drc
command = ./automation/run_drc.sh $
@ -790,7 +800,9 @@ rule 0_2_compact_cases_low_profile_cork_spacer_and_lip_edge_cuts
.kiplot.edge_cuts.yml -d build/0.2/compact/cases/low_profile
build build/0.2/compact/cases/low_profile/cork_spacer_and_lip-Edge_Cuts.dxf $
build/0.2/compact/cases/low_profile/cork_spacer_and_lip-Edge_Cuts.svg: $
0_2_compact_cases_low_profile_cork_spacer_and_lip_edge_cuts
0_2_compact_cases_low_profile_cork_spacer_and_lip_edge_cuts $
0.2/compact/cases/low_profile/cork_spacer_and_lip.kicad_pcb $
.kiplot.edge_cuts.yml
rule 0_2_compact_cases_low_profile_lip_drc
command = ./automation/run_drc.sh $
@ -816,7 +828,8 @@ rule 0_2_compact_cases_low_profile_lip_edge_cuts
-d build/0.2/compact/cases/low_profile
build build/0.2/compact/cases/low_profile/lip-Edge_Cuts.dxf $
build/0.2/compact/cases/low_profile/lip-Edge_Cuts.svg: $
0_2_compact_cases_low_profile_lip_edge_cuts
0_2_compact_cases_low_profile_lip_edge_cuts $
0.2/compact/cases/low_profile/lip.kicad_pcb .kiplot.edge_cuts.yml
build 0.2/compact: phony build/0.2/compact/gerbers.zip $
build/0.2/compact/ferris_front.svg build/0.2/compact/ferris_back.svg $