]> www.fi.muni.cz Git - bike-lights.git/blobdiff - schematics/Makefile
pwm.c: channels running - visible from the outside
[bike-lights.git] / schematics / Makefile
index d987f9699f0457dcdef7354d7b5cac195ac63e97..f669597c8e1df51d753ba66c4e90b91ec3550599 100644 (file)
@@ -1,5 +1,5 @@
 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 handlebar.png
 GERBER_FILES=\
        lights.top.gbr \
        lights.bottom.gbr \
@@ -15,9 +15,9 @@ all:
 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: $(WEB_FILES)
        test -d $(WEB_DIR) && install -m 644 $(WEB_FILES) $(WEB_DIR)
 
 lights.pcb: lights.sch lights.prj
@@ -31,6 +31,15 @@ pcb-back.png: lights.pcb
        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
+
+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