WEB_DIR=/home/kas/html/bike-lights/
-WEB_FILES=pcb-back.png pcb-front.png
+WEB_FILES=pcb-back.png pcb-front.png schematics.png
GERBER_FILES=\
lights.top.gbr \
lights.bottom.gbr \
clean:
rm -f lights.cmd lights.jpg lights.net lights.new.pcb lights.pcb- \
lights.png lights.ps lights.sch~ pcb-back.png pcb-front.png \
- *.gbr *.cnc
+ schematics.png *.gbr *.cnc
-web: pcb-back.png pcb-front.png
+web: pcb-back.png pcb-front.png schematics.png
test -d $(WEB_DIR) && install -m 644 $(WEB_FILES) $(WEB_DIR)
lights.pcb: lights.sch lights.prj
pcb -x png --dpi 150 --photo-mode --photo-flip-x lights.pcb \
&& mv lights.png $@
+schematics.png: lights.sch
+ gschem -s image.scm lights.sch -o schematics.png
+
gerber: $(GERBER_FILES)
$(GERBER_FILES): lights.pcb