# musman Makefile

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

src = musman.tex ../bibdatabase.bib

help:
	@echo
	@echo "make pdf      Make musman.pdf and view it"
	@echo "make dose     Put musman.pdf in my E drive (/dose)"
	@echo "make sshpube  Put musman.pdf in my home page using scp"
	@echo "make clean    Delete all rebuildable files"
	@echo

pdf:	musman.pdf
	okular musman.pdf

musman.pdf:	$(src)
	date >date.tex
	pdflatex musman
	bibtex musman
	pdflatex musman
	bibtex musman
	pdflatex musman

dose:	musman.pdf
	cp musman.pdf /dose

sshpube:	musman.pdf
	cp musman.pdf /dose
	scp musman.pdf $(SSHPUB)

clean:
	rm -f *~ core date.tex
	rm -f *.log *.dvi *.aux *.blg *.err musman.ps musman.pdf
	rm -f *.idx *.ilg *.lof
	rm -f *.toc *.bbl
#	rm -f bfigs/pngfiles
