Root/prod/doc/Makefile

Source at commit cb855b2a6902a516dd58d7bb1f074f9d50ff39b1 created 8 years 8 months ago.
By Werner Almesberger, prod/doc/: added voltage measurement points on layout
1PNGS=flow.png setup-A.png setup-B.png setup-C.png setup-D.png \
2     atben-A.png atusb-A.png atben-B.png atusb-B.png \
3     atben-A-small.png atusb-A-small.png atben-B-small.png atusb-B-small.png
4HTMLS=index.html setup.html flash.html test.html analysis.html
5JPGS=atusb-programming.jpg atrf-path.png atrf-path-small.png
6
7DL=http://downloads.qi-hardware.com/people/werner/wpan/tmp
8
9
10.PHONY: all upload clean
11
12all: $(PNGS) $(JPGS)
13
14flow.png: flow.fig
15        fig2dev -L png -m 0.7 -S 4 $< $@ || { rm -f $@; exit 1; }
16
17setup-%.png: setup.fig
18        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
19            fig2dev -L png -m 0.7 -S 4 >$@ || \
20            { rm -f $@; exit 1; }
21
22atben-%-small.png: \
23          atben.fig
24        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
25            fig2dev -L png -m 0.5 -S 4 >$@ || \
26            { rm -f $@; exit 1; }
27
28atben-%.png: atben.fig
29        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
30            fig2dev -L png -m 2 -S 4 >$@ || \
31            { rm -f $@; exit 1; }
32
33atusb-%-small.png: \
34          atusb.fig
35        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
36            fig2dev -L png -m 0.5 -S 4 >$@ || \
37            { rm -f $@; exit 1; }
38
39atusb-%.png: atusb.fig
40        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
41            fig2dev -L png -m 2 -S 4 >$@ || \
42            { rm -f $@; exit 1; }
43
44atusb-programming.jpg:
45        wget $(DL)/atusb-programming.jpg
46
47atrf-path.png:
48        wget $(DL)/atrf-path.png
49
50atrf-path-small.png: \
51          atrf-path.png
52        convert -scale 50% $< $@
53
54%-front.png:
55        $(MAKE) -C ../../$* $@
56        mv ../../$*/$@ .
57
58upload: $(HTMLS) $(PNGS) $(JPGS)
59        rsync -e ssh $^ \
60            www-data@downloads.qi-hardware.com:werner/wpan/prod/
61
62clean:
63        rm -f $(PNGS)
64

Archive Download this file



interactive