]> www.fi.muni.cz Git - bike-lights.git/commitdiff
Makefile for creating the web pages
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 29 Oct 2012 10:30:05 +0000 (11:30 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Mon, 29 Oct 2012 10:30:05 +0000 (11:30 +0100)
schematics/Makefile [new file with mode: 0644]

diff --git a/schematics/Makefile b/schematics/Makefile
new file mode 100644 (file)
index 0000000..0a443c9
--- /dev/null
@@ -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 $@