# This makefile is used to create .tgz .zip versions
# of the publications distribution.

PUB = /homes/mr/public_html

# Public HTML directory if not mountable on this machine
# and the shared drive is called E: (/dose on Linux).
# Remember to call ssh-add before calling make sshpub.
SSHPUB = mr10@ely.cl.cam.ac.uk:public_html

help:
	@echo
	@echo "make all       Construct: publications.tgz and publications.zip"
	@echo "               leaving them in distribution/"
	@echo "make dose      Put them in /dose"
	@echo "make sshpube   Put them in /dose and my home page using scp"
	@echo

all:
	rm -f *~ */*~
	(cd ..; tar cvzf publications.tgz publications)
	(cd ..; rm -f publications.zip)
	(cd ..;  zip -rv9 publications.zip publications)

sshpube:	dose
	scp ../publications.tgz ../publications.zip $(SSHPUB)/publications

dose:	all
	cp ../publications.tgz ../publications.zip /dose

