Root/prod/doc/Makefile

Source at commit 3800125a27b414378e23c14a99e292960270f369 created 6 years 5 months ago.
By Werner Almesberger, prod/doc/Makefile: add missing dependencies on at{ben,usb}-{front,back}.png
1DOWNLOADED=atusb-programming.jpg atrf-path.png
2GENERATED=index.html setup.html flash.html test.html analysis.html \
3      flow.png setup-A.png setup-B.png setup-C.png setup-D.png \
4      atben-A.png atusb-A.png atben-B.png atusb-B.png \
5      atben-A-small.png atusb-A-small.png \
6      atben-B-small.png atusb-B-small.png \
7      atrf-path-small.png \
8      atben-compor.png atusb-compor.png
9ORIGINAL=scope-atben-clkm.png scope-atusb-clkm.png scope-atusb-clk.png \
10         atben-compor.jpg atusb-compor.jpg
11
12DL=http://downloads.qi-hardware.com/people/werner/wpan/tmp
13
14
15.PHONY: all upload clean spotless
16
17all: $(DOWNLOADED) $(GENERATED)
18
19%.html: %.hmac style.inc hmac.pl
20        perl hmac.pl -DGEN_DATE=`date -u +'%Y-%m-%d'` $*.hmac >$@ || \
21            { rm -f $@; exit 1; }
22        
23flow.png: flow.fig
24        fig2dev -L png -m 0.7 -S 4 $< $@ || { rm -f $@; exit 1; }
25
26setup-%.png: setup.fig
27        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
28            fig2dev -L png -m 0.7 -S 4 >$@ || \
29            { rm -f $@; exit 1; }
30
31%-front.png:
32        $(MAKE) -C ../../$* $@
33        mv ../../$*/$@ .
34
35atben-%-small.png: \
36          atben.fig atben-front.png
37        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
38            fig2dev -L png -m 0.5 -S 4 >$@ || \
39            { rm -f $@; exit 1; }
40
41atben-compor.png: \
42          atben-compor.fig
43        fig2dev -L png -m 0.25 -S 4 $< >$@ || { rm -f $@; exit 1; }
44
45atben-%.png: atben.fig atben-front.png
46        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
47            fig2dev -L png -m 2 -S 4 >$@ || \
48            { rm -f $@; exit 1; }
49
50atusb-%-small.png: \
51          atusb.fig atusb-front.png
52        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
53            fig2dev -L png -m 0.5 -S 4 >$@ || \
54            { rm -f $@; exit 1; }
55
56atusb-compor.png: \
57          atusb-compor.fig
58        fig2dev -L png -m 0.25 -S 4 $< >$@ || { rm -f $@; exit 1; }
59
60atusb-%.png: atusb.fig atusb-front.png
61        ./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
62            fig2dev -L png -m 2 -S 4 >$@ || \
63            { rm -f $@; exit 1; }
64
65atusb-programming.jpg:
66        wget $(DL)/atusb-programming.jpg
67
68atrf-path.png:
69        wget $(DL)/atrf-path.png
70
71atrf-path-small.png: \
72          atrf-path.png
73        convert -scale 50% $< $@
74
75upload: $(GENERATED) $(DOWNLOADED) $(ORIGINAL)
76        rsync -e ssh $^ \
77            www-data@downloads.qi-hardware.com:werner/wpan/prod/
78
79clean:
80        rm -f $(GENERATED)
81
82spotless: clean
83        rm -f $(DOWNLOADED)
84

Archive Download this file



interactive