aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile30
1 files changed, 14 insertions, 16 deletions
diff --git a/justfile b/justfile
index a2ad747..809ad6d 100644
--- a/justfile
+++ b/justfile
@@ -1,42 +1,40 @@
-OUTDIR := "output"
+HWDIR := "hardware"
+HWOUTDIR := "hardware/output"
KICAD_CLI := "kicad-cli"
-open:
- kicad pantsonfyre.kicad_pro
+hw:
+ kicad "{{HWDIR}}/sinthinator.kicad_pro"
gerbers: clean gen-gerbers gen-drill zip-gerbers
-svg: svg-schematic svg-pcb
+svg: svg-schematic
drc:
- {{KICAD_CLI}} pcb drc --output --all-track-errors --schematic-parity --format=json --severity-all ./pantsonfyre.kicad_pcb
+ {{KICAD_CLI}} pcb drc --output --all-track-errors --schematic-parity --format=json --severity-all "{{HWDIR}}/sinthinator.kicad_pcb"
@clean:
- rm -rf "{{OUTDIR}}"
+ rm -rf "{{HWOUTDIR}}"
zip-gerbers:
- cd "{{OUTDIR}}/gerbers" && zip -r pantsonfyre-gerbers.zip ./pantsonfyre
+ cd "{{HWOUTDIR}}/gerbers" && zip -r sinthinator-gerbers.zip ./sinthinator
svg-schematic:
- {{KICAD_CLI}} sch export svg -t arcana --output "{{OUTDIR}}" ./pantsonfyre.kicad_sch
-
-svg-pcb:
- {{KICAD_CLI}} pcb export svg --layers '*' --mode-single -o "{{OUTDIR}}/pcb.svg" ./pantsonfyre.kicad_pcb
+ {{KICAD_CLI}} sch export svg -t arcana --output . "{{HWDIR}}/sinthinator.kicad_sch"
bom:
- {{KICAD_CLI}} sch export bom pantsonfyre.kicad_sch -o "{{OUTDIR}}/pantsonfyre-bom.csv"
+ {{KICAD_CLI}} sch export bom "{{HWDIR}}/sinthinator.kicad_sch" -o "{{HWOUTDIR}}/sinthinator-bom.csv"
@gen-gerbers:
{{KICAD_CLI}} pcb export gerbers \
-l B.Cu,B.Mask,B.Silkscreen,B.Paste,F.Cu,F.Mask,F.Silkscreen,F.Paste,Edge.Cuts \
--precision 6 --no-x2 \
- --output "{{OUTDIR}}/gerbers/pantsonfyre" \
- ./pantsonfyre.kicad_pcb
+ --output "{{HWOUTDIR}}/gerbers/sinthinator" \
+ "{{HWDIR}}/sinthinator.kicad_pcb"
@gen-drill:
{{KICAD_CLI}} pcb export drill \
--format excellon --drill-origin absolute \
--excellon-zeros-format decimal --excellon-oval-format alternate --excellon-units mm --excellon-separate-th \
--generate-map --map-format gerberx2 \
- --output "{{OUTDIR}}/gerbers/pantsonfyre" \
- ./pantsonfyre.kicad_pcb
+ --output "{{HWOUTDIR}}/gerbers/sinthinator" \
+ "{{HWDIR}}/sinthinator.kicad_pcb"