WEB_DIR=/home/kas/html/bike-lights/
-WEB_FILES=pcb-back.png pcb-front.png schematics.png
+WEB_FILES=pcb-back.png pcb-front.png schematics.png handlebar.png
GERBER_FILES=\
lights.top.gbr \
lights.bottom.gbr \
lights.png lights.ps lights.sch~ pcb-back.png pcb-front.png \
schematics.png *.gbr *.cnc
-web: pcb-back.png pcb-front.png schematics.png
+web: $(WEB_FILES)
test -d $(WEB_DIR) && install -m 644 $(WEB_FILES) $(WEB_DIR)
lights.pcb: lights.sch lights.prj
schematics.png: lights.sch
gschem -s image.scm lights.sch -o schematics.png
+handlebar-big.png: handlebar.sch
+ gschem -s image.scm handlebar.sch -o handlebar-big.png
+
+handlebar.png: handlebar-big.png
+ convert -crop 450x300+320+170 handlebar-big.png handlebar.png
+
gerber: $(GERBER_FILES)
$(GERBER_FILES): lights.pcb