From dc29bd41caa78716a2afe6f945d6f823b0f58d65 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Mon, 29 Oct 2012 11:30:05 +0100 Subject: [PATCH] Makefile for creating the web pages --- schematics/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 schematics/Makefile 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 $@ -- 2.43.5