summaryrefslogtreecommitdiff
path: root/pwr/Makefile
blob: f0e109f8bfa08acee1087932274ad3fe6dc0d4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
UPLOAD = wpwrak@neo900.org:pub/werner/power-tree
SCP = rsync -e "neo900 --ssh" -v

.PHONY:	all upload clean

all:

index.html: index.template Makefile
	sed "s/{DATE}/`date -u '+%F %X'` UTC/" $< >$@ || { rm -f $@; exit 1; }

neo900-power-tree.pdf: neo900.fig Makefile
	fig2dev -L pdf $< $@ || { rm -f $@; exit 1; }

neo900-power-tree.png: neo900.fig Makefile
	fig2dev -L png -S 4 -m 1.2 $< $@ || { rm -f $@; exit 1; }

upload:	index.html neo900-power-tree.pdf neo900-power-tree.png
	$(SCP) $^ $(UPLOAD)

clean:
	rm -f index.html neo900-power-tree.pdf neo900-power-tree.png