2011-05-27 18:47:08 +03:00
|
|
|
DOWNLOADED=atusb-programming.jpg atrf-path.png
|
|
|
|
GENERATED=index.html setup.html flash.html test.html analysis.html \
|
|
|
|
flow.png setup-A.png setup-B.png setup-C.png setup-D.png \
|
|
|
|
atben-A.png atusb-A.png atben-B.png atusb-B.png \
|
|
|
|
atben-A-small.png atusb-A-small.png \
|
|
|
|
atben-B-small.png atusb-B-small.png \
|
2011-05-29 20:46:00 +03:00
|
|
|
atrf-path-small.png \
|
|
|
|
atben-compor.png atusb-compor.png
|
|
|
|
ORIGINAL=scope-atben-clkm.png scope-atusb-clkm.png scope-atusb-clk.png \
|
|
|
|
atben-compor.jpg atusb-compor.jpg
|
2011-05-18 03:57:18 +03:00
|
|
|
|
2011-05-27 01:44:29 +03:00
|
|
|
DL=http://downloads.qi-hardware.com/people/werner/wpan/tmp
|
|
|
|
|
|
|
|
|
2011-05-27 18:47:08 +03:00
|
|
|
.PHONY: all upload clean spotless
|
2011-05-26 22:39:26 +03:00
|
|
|
|
2011-05-27 18:47:08 +03:00
|
|
|
all: $(DOWNLOADED) $(GENERATED)
|
2011-05-18 03:57:18 +03:00
|
|
|
|
2011-05-27 12:45:06 +03:00
|
|
|
%.html: %.hmac style.inc hmac.pl
|
2011-05-27 19:14:32 +03:00
|
|
|
perl hmac.pl -DGEN_DATE=`date -u +'%Y-%m-%d'` $*.hmac >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
2011-05-27 12:31:11 +03:00
|
|
|
|
2011-05-18 03:57:18 +03:00
|
|
|
flow.png: flow.fig
|
|
|
|
fig2dev -L png -m 0.7 -S 4 $< $@ || { rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
setup-%.png: setup.fig
|
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 0.7 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
2011-05-27 10:34:59 +03:00
|
|
|
%-front.png:
|
|
|
|
$(MAKE) -C ../../$* $@
|
|
|
|
mv ../../$*/$@ .
|
|
|
|
|
2011-05-27 03:14:05 +03:00
|
|
|
atben-%-small.png: \
|
2013-01-30 15:19:43 +02:00
|
|
|
atben.fig atben-front.png
|
2011-05-27 03:14:05 +03:00
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 0.5 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
2011-05-29 20:46:00 +03:00
|
|
|
atben-compor.png: \
|
|
|
|
atben-compor.fig
|
|
|
|
fig2dev -L png -m 0.25 -S 4 $< >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
2013-01-30 15:19:43 +02:00
|
|
|
atben-%.png: atben.fig atben-front.png
|
2011-05-27 03:14:05 +03:00
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 2 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
atusb-%-small.png: \
|
2013-01-30 15:19:43 +02:00
|
|
|
atusb.fig atusb-front.png
|
2011-05-27 03:14:05 +03:00
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 0.5 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
2011-05-29 20:46:00 +03:00
|
|
|
atusb-compor.png: \
|
|
|
|
atusb-compor.fig
|
|
|
|
fig2dev -L png -m 0.25 -S 4 $< >$@ || { rm -f $@; exit 1; }
|
|
|
|
|
2013-01-30 15:19:43 +02:00
|
|
|
atusb-%.png: atusb.fig atusb-front.png
|
2011-05-27 03:14:05 +03:00
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 2 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
2011-05-26 22:13:03 +03:00
|
|
|
atusb-programming.jpg:
|
2011-05-27 01:44:29 +03:00
|
|
|
wget $(DL)/atusb-programming.jpg
|
2011-05-26 22:13:03 +03:00
|
|
|
|
2011-05-27 01:42:57 +03:00
|
|
|
atrf-path.png:
|
2011-05-27 01:44:29 +03:00
|
|
|
wget $(DL)/atrf-path.png
|
2011-05-27 01:42:57 +03:00
|
|
|
|
|
|
|
atrf-path-small.png: \
|
|
|
|
atrf-path.png
|
|
|
|
convert -scale 50% $< $@
|
|
|
|
|
2011-05-28 00:37:40 +03:00
|
|
|
upload: $(GENERATED) $(DOWNLOADED) $(ORIGINAL)
|
2011-05-26 22:39:26 +03:00
|
|
|
rsync -e ssh $^ \
|
|
|
|
www-data@downloads.qi-hardware.com:werner/wpan/prod/
|
|
|
|
|
2011-05-18 03:57:18 +03:00
|
|
|
clean:
|
2011-05-27 18:47:08 +03:00
|
|
|
rm -f $(GENERATED)
|
|
|
|
|
|
|
|
spotless: clean
|
|
|
|
rm -f $(DOWNLOADED)
|