--- /dev/null
+WEB_DIR=/home/kas/html/bike-lights/
+WEB_FILES=pcb-back.png pcb-front.png
+
+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
+
+web: pcb-back.png pcb-front.png
+ test -d $(WEB_DIR) && install -m 644 $(WEB_FILES) $(WEB_DIR)
+
+lights.pcb: lights.sch lights.prj
+ gsch2pcb lights.prj
+
+pcb-front.png: lights.pcb
+ pcb -x png --dpi 150 --photo-mode lights.pcb \
+ && mv lights.png $@
+
+pcb-back.png: lights.pcb
+ pcb -x png --dpi 150 --photo-mode --photo-flip-x lights.pcb \
+ && mv lights.png $@