From: Jan "Yenya" Kasprzak Date: Mon, 29 Oct 2012 10:30:05 +0000 (+0100) Subject: Makefile for creating the web pages X-Git-Tag: gerber-fab-20121029-1711~2 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=dc29bd41caa78716a2afe6f945d6f823b0f58d65 Makefile for creating the web pages --- diff --git a/schematics/Makefile b/schematics/Makefile new file mode 100644 index 0000000..0a443c9 --- /dev/null +++ b/schematics/Makefile @@ -0,0 +1,20 @@ +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 $@