1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-21 23:39:22 +02:00
wernermisc/fisl2012/Makefile
2012-07-25 15:32:04 -03:00

55 lines
1.1 KiB
Makefile

SHELL=/bin/bash
#DL=USB.png Nano_cola.jpg Atben_atusb_prod_03.jpg Atben_atusb_prod_05.jpg \
# M1_dmx_video.jpg \
# UBB_production_08.JPG ubb-vga-pub-plugged-medium.jpg \
# ubb-vga-pub-1024-medium.jpg SIE_KICAD.png
#GEN=schhist.png fped.png kicad.png achieve.pdf flow.pdf
GEN=schem.pdf cat-comp.pdf cat-mod.pdf
#PNG=atusb-front.png
.PHONY: spotless clean upload upload-es
all: talk.pdf
xpdf talk.pdf
talk.pdf: talk.tex $(GEN) $(DL) $(PNG)
pdflatex talk
kicad.png: eeschema.xwd pcbnew.xwd
pnmcomp -xoff=0 -yoff=300 \
<(convert eeschema.xwd ppm:-) \
<(convert pcbnew.xwd ppm:- | \
pnmpad -white -left=900 -bottom=300) | \
convert - $@
eeschema.png: eeschema.xwd
convert $< $@
comped.png: comped.xwd
convert $< $@
schem.pdf: schem.fig eeschema.png comped.png
fig2dev -L pdf $< $@
cat-comp.pdf: cat-comp.fig
fig2dev -L pdf $< $@
cat-mod.pdf: cat-mod.fig
fig2dev -L pdf $< $@
talk.ps: talk.pdf
pdftops -paper A4 -expand $< $@
p8: talk.ps
mpage -8 $< | lpr
spotless:
rm -f $(DL)
clean:
rm -f $(GEN) talk.ps
upload: talk.pdf
qippl talk.pdf fisl13.pdf