%_mashup.jpg: %.png .FORCE
	convert \
	 -composite \
	 -geometry $(shell sed -n 's/^% offset \(\S\+\).*/\1/p' $*.ps) \
	 cos_sat_complete.jpg \
	 $< $@
%.png:	%.ps .FORCE
	convert \
	 -rotate -90 \
	 -transparent white \
	 -trim \
	 $< $@
.FORCE:
view:
	firefox $(shell ls -1t *_mashup.jpg | head -n 1)
index.shtml: index.html
	touch -r $< $@  # change "last modified" time to match content
upload: index.shtml
	rsync . -avuz --delete $(DRYRUN) www:$(PWD)
	rsync . -avuz --delete $(DRYRUN) tek:$(PWD)
