# file: Makefile	G. Moody	5 March 2008
#			Last revised:  	 10 May 2011
# 'make' description file for creating the PhysioBank index

BINDIR = /data1/home/pn/bin
PBDIR = /home/physionet/html/physiobank/database

# install the software and its configuration files
install:	make-pbi pbreclist pbindex
	cp -p aftypes sigtypes sigclasses $(PBDIR)
	cp -p make-pbi pbreclist pbindex $(BINDIR)

# pbindex reads record names from stdin, writes the index to stdout
pbindex:	pbindex.c
	$(CC) -o pbindex -O pbindex.c -lwfdb

# make-pbi regenerates /home/physionet/html/physiobank/database/physionet-index
physiobank-index:	pbindex
	make-pbi

clean:
	rm -f *~ pbindex
