1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-26 13:59:42 +02:00

prod/doc/Makefile: added "spotless"; cleaned up generated/downloaded/orig logic

This commit is contained in:
Werner Almesberger 2011-05-27 12:47:08 -03:00
parent 2386f1f7b5
commit 77a60a9e03

View File

@ -1,15 +1,17 @@
PNGS=flow.png setup-A.png setup-B.png setup-C.png setup-D.png \ 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.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 atben-A-small.png atusb-A-small.png \
HTMLS=index.html setup.html flash.html test.html analysis.html atben-B-small.png atusb-B-small.png \
JPGS=atusb-programming.jpg atrf-path.png atrf-path-small.png atrf-path-small.png
DL=http://downloads.qi-hardware.com/people/werner/wpan/tmp DL=http://downloads.qi-hardware.com/people/werner/wpan/tmp
.PHONY: all upload clean .PHONY: all upload clean spotless
all: $(HTMLS) $(PNGS) $(JPGS) all: $(DOWNLOADED) $(GENERATED)
%.html: %.hmac style.inc hmac.pl %.html: %.hmac style.inc hmac.pl
perl hmac.pl $*.hmac >$@ || { rm -f $@; exit 1; } perl hmac.pl $*.hmac >$@ || { rm -f $@; exit 1; }
@ -58,9 +60,12 @@ atrf-path-small.png: \
atrf-path.png atrf-path.png
convert -scale 50% $< $@ convert -scale 50% $< $@
upload: $(HTMLS) $(PNGS) $(JPGS) upload: $(GENERATED) $(DOWNLOADS)
rsync -e ssh $^ \ rsync -e ssh $^ \
www-data@downloads.qi-hardware.com:werner/wpan/prod/ www-data@downloads.qi-hardware.com:werner/wpan/prod/
clean: clean:
rm -f $(PNGS) rm -f $(GENERATED)
spotless: clean
rm -f $(DOWNLOADED)