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 \
|
|
|
|
atrf-path-small.png
|
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: \
|
|
|
|
atben.fig
|
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 0.5 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
atben-%.png: atben.fig
|
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 2 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
atusb-%-small.png: \
|
|
|
|
atusb.fig
|
|
|
|
./figfilt `echo $@ | tr -cd 'A-Z'` $< | \
|
|
|
|
fig2dev -L png -m 0.5 -S 4 >$@ || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
atusb-%.png: atusb.fig
|
|
|
|
./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-27 18:47:08 +03:00
|
|
|
upload: $(GENERATED) $(DOWNLOADS)
|
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)
|