# file: Makefile	G. Moody	10 March 2006

all:		setup.py wfdb_python_wrap.c
	python setup.py build

install:	setup.py wfdb_python_wrap.c
	python setup.py install

check:
	@python ../examples/psamples.py >check.out
	@if ( diff -q check.out ../examples/psamples.out ) \
	 then echo "Passed"; else echo "Failed"; fi

wfdb_python_wrap.c:	../wfdb.i
	cd ..; $(MAKE) python

clean:
	python setup.py clean
	rm -rf  build check.out swig-version wfdb* *~
