Added a Makefile for generation of some hardware outputs.

This commit is contained in:
Gareth McMullin 2012-04-12 18:47:30 +12:00
parent b513799c10
commit 405570636b
1 changed files with 22 additions and 0 deletions
hardware

22
hardware/Makefile Normal file
View File

@ -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