X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=blobdiff_plain;f=schematics%2FMakefile;fp=schematics%2FMakefile;h=0a443c9a00a9be7d076ebdb178ace28970935307;hp=0000000000000000000000000000000000000000;hb=dc29bd41caa78716a2afe6f945d6f823b0f58d65;hpb=17a8af106cef879e4702d76f6cec82bedfcf176f 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 $@