B=../../bin

all: NOBACKUP/blat.dat NOBACKUP/blon.dat

NOBACKUP/tbase.Z:
	mkdir -p NOBACKUP
	wget -O NOBACKUP/tbase.Z http://dss.ucar.edu/datasets/ds759.2/data/tbase.Z

NOBACKUP/etopo5.pgm NOBACKUP/blat.dat NOBACKUP/blon.dat: NOBACKUP/tbase.Z $B/etopo5
	zcat $< | $B/etopo5 > NOBACKUP/etopo5.pgm || /bin/rm -f NOBACKUP/blat.dat NOBACKUP/blon.dat
	
clean:
	/bin/rm -f NOBACKUP/blat.dat NOBACKUP/blon.dat
