Root/prod/doc/Makefile

Source at commit 2f6c22dbba47a6f020e59958bc75c72215dc077d created 8 years 4 months ago.
By Werner Almesberger, prod/doc/: converted index.html to index.hmac
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: $(HTMLS) $(PNGS) $(JPGS)
13
14index.html: index.hmac style.inc hmac.pl
15        perl hmac.pl index.hmac >$@ || { rm -f $@; exit 1; }
16        
17flow.png: flow.fig
18        fig2dev -L png -m 0.7 -S 4 $< $@ || { rm -f $@; exit 1; }
19
20setup-%.png: setup.fig
21        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
22            fig2dev -L png -m 0.7 -S 4 >$@ || \
23            { rm -f $@; exit 1; }
24
25%-front.png:
26        $(MAKE) -C ../../$* $@
27        mv ../../$*/$@ .
28
29atben-%-small.png: \
30          atben.fig
31        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
32            fig2dev -L png -m 0.5 -S 4 >$@ || \
33            { rm -f $@; exit 1; }
34
35atben-%.png: atben.fig
36        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
37            fig2dev -L png -m 2 -S 4 >$@ || \
38            { rm -f $@; exit 1; }
39
40atusb-%-small.png: \
41          atusb.fig
42        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
43            fig2dev -L png -m 0.5 -S 4 >$@ || \
44            { rm -f $@; exit 1; }
45
46atusb-%.png: atusb.fig
47        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
48            fig2dev -L png -m 2 -S 4 >$@ || \
49            { rm -f $@; exit 1; }
50
51atusb-programming.jpg:
52        wget $(DL)/atusb-programming.jpg
53
54atrf-path.png:
55        wget $(DL)/atrf-path.png
56
57atrf-path-small.png: \
58          atrf-path.png
59        convert -scale 50% $< $@
60
61upload: $(HTMLS) $(PNGS) $(JPGS)
62        rsync -e ssh $^ \
63            www-data@downloads.qi-hardware.com:werner/wpan/prod/
64
65clean:
66        rm -f $(PNGS)
67

Archive Download this file



interactive