Added a Makefile for generation of some hardware outputs.
This commit is contained in:
parent
b513799c10
commit
405570636b
hardware
|
@ -0,0 +1,22 @@
|
|||
OUT = blackmagic_mini
|
||||
|
||||
.PHONY: all clean
|
||||
all: $(OUT).gbr.zip $(OUT).xy
|
||||
|
||||
%.net: %.sch
|
||||
gnetlist -g PCB -o $@ $<
|
||||
|
||||
%.xy %.bom: %.pcb
|
||||
pcb -x bom $<
|
||||
|
||||
%.gbr: %.pcb
|
||||
mkdir -p $@
|
||||
pcb -x gerber --gerberfile $@/$(basename $@) $<
|
||||
touch $@
|
||||
|
||||
%.gbr.zip: %.gbr
|
||||
zip -r $@ $<
|
||||
|
||||
clean:
|
||||
-rm -rf *.bom *.xy *.net *.gbr.zip $(OUT).gbr
|
||||
|
Loading…
Reference in New Issue