diff --git a/hardware/main/Makefile b/hardware/main/Makefile index 3340286..6b240e9 100644 --- a/hardware/main/Makefile +++ b/hardware/main/Makefile @@ -1,4 +1,35 @@ -all: Parts.md +all: Parts.md schematic board Parts.md: parts ruby ../partslist/parts.rb + +schematic: bristol_longshot.sch.pdf bristol_longshot.sch.png +board: bristol_longshot.brd.pdf bristol_longshot.brd.png + +# +# PNG from .sch +# +%.sch.png: %.sch + rm -f $@ + eagle -C "export image $@ 600; display all; quit" $< +# +# PDF from .sch +# 1 page lanscape +# +%.sch.pdf: %.sch + rm -f $@ + eagle -C "print -1 landscape file $@; quit" $< +# +# PNG from .brd +# Ratsnest, maximum dpi +# +%.brd.png: %.brd + rm -f $@ + eagle -C "ratsnest; export image $@ 2400; display all; quit" $< +# +# PDF from .brd +# -1 limits to one page +# +%.brd.pdf: %.brd + rm -f $@ + eagle -C "ratsnest; print 100 -1 file $@; quit" $< diff --git a/hardware/main/bristol_longshot.brd.pdf b/hardware/main/bristol_longshot.brd.pdf new file mode 100644 index 0000000..fc0ff80 Binary files /dev/null and b/hardware/main/bristol_longshot.brd.pdf differ diff --git a/hardware/main/bristol_longshot.brd.png b/hardware/main/bristol_longshot.brd.png new file mode 100644 index 0000000..20facb5 Binary files /dev/null and b/hardware/main/bristol_longshot.brd.png differ diff --git a/hardware/main/bristol_longshot.pdf b/hardware/main/bristol_longshot.pdf deleted file mode 100644 index 10a76ad..0000000 Binary files a/hardware/main/bristol_longshot.pdf and /dev/null differ diff --git a/hardware/main/bristol_longshot.sch.pdf b/hardware/main/bristol_longshot.sch.pdf new file mode 100644 index 0000000..e542f32 Binary files /dev/null and b/hardware/main/bristol_longshot.sch.pdf differ diff --git a/hardware/main/bristol_longshot.sch.png b/hardware/main/bristol_longshot.sch.png new file mode 100644 index 0000000..b75bb56 Binary files /dev/null and b/hardware/main/bristol_longshot.sch.png differ