# install.rdf and application.ini also have the version number
V=0.4.3

N=psycZilla
T=/L/pages/org/zilla/releases
P=defaults/preferences/prefs.js

# psycZilla (friendcaster?) - a PSYC communications hub for firefox

it:
	@make clean dist

dist:
	zip -9r $N-$V.xpi *.* chrome components defaults -x \*/CVS/\* -x \*~
	mv $N-$V.xpi /dev/shm
	@echo About to copy the new version to the website.. yes?
	@sleep 3
	scp /dev/shm/$N-$V.xpi l:$T/$N-$V.xpi
#	mv $N-$V.xpi $T
#	(cd $T;ln -sf $N-$V.xpi $N.xpi)

clean:
	-rm *.xpi

ext:
	-mv $(P)-disabled $(P)
	cvs -q update -dP
	-mv $(P) $(P)-disabled

love:
	@echo this is not the way to do it.

