# $Revision: 1.9 $  $Author: schwehr $  $Date: 2005/05/18 14:59:10 $
##############################################################################
# Copyright (C) 2004  Kurt Schwehr
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
##############################################################################

default:
	@echo
	@echo "Welcome to the BPSIO-04 doc/work directory"
	@echo
	@echo "docs          - use pydoc to make html pages"
	@echo "docs-install  - put html on the web"
	@echo "check         - Search for marked trouble spots"
	@echo "clean         - Remove temp files"
	@echo
	@echo "afdemag-poster.pdf       - "
	@echo "pilfonts       - "
	@echo "posters       - "

posters: afdemag_poster.pdf manyplots_poster.pdf

afdemag_poster.pdf: afdemag_poster.py
	./afdemag_poster.py

clean:
	rm -f *.pbm *.pdf *.ps *.png water*.dat
	rm -f *.pyc *~ .*~ *.html
	rm -f fit.log *.pseudot

real-clean: clean
	rm -rf pilfonts .xvpics

pilfonts: pilfonts.zip
	unzip pilfonts.zip

pilfonts.zip:
	wget http://effbot.org/downloads/pilfonts.zip

check:
	grep 'FIX:' *.py


PYTHON_FILES=${wildcard *.py}
PYTHON_MODS=${PYTHON_FILES:.py=}
PYTHON_MOD_DOCS=${PYTHON_FILES:.py=.html}

docs: 
	@echo "${PYTHON_MODS}"
	pydoc -w ${PYTHON_MODS}
	code2html Makefile > Makefile-bpsio04-doc-work.html

docs-install: docs
	scp ${PYTHON_MOD_DOCS} Makefile*.html kds:www/Gaviota/bpsio-Aug04/docs
	open *poster*.html

help:
	open ~/x/src/pmag-py/{bpsio,xcore}.html

water:
	./water.py
	chmod +x  water-fit-all.gp; ./water-fit-all.gp
	cp water-fit-all.gp foo.gp
	@echo open water-all-fit.pdf  water-all.pdf



syntax highlighted by Code2HTML, v. 0.9.1