# $Id: Makefile,v 1.5 2003/12/17 23:14:47 connolly Exp $

PERL=perl
PYTHON=python

ITIN=phl-res

include ../11dc-nrt/Makefile.swtrav
DATELABEL=-date "8 Dec 2003 12:00:00 EST" -label
FOCUS=-latitude 39.2975  -longitude -80 # eastern US
RADIUS=210 # show a small part of the planet

SEPBOS=../09dc-bos
YVR=../07dc-yvr
BUD=../05dc-bud
TRIPEVENTID=1153
include $(SEPBOS)/Makefile.hip


W=../..
SWAP=$(W)/2000/10/swap
CWM=$(SWAP)/cwm.py

.SUFFIXES: .msg .n3


#@@	$(PERL) slurpItin.pl --aboutMe $(ABOUTWHO) --localName $(WHO) < $< >$@.nt

.msg.n3:
	$(PERL) slurpItin.pl < $< >$@.nt
	$(PYTHON) $(CWM) $@.nt >$@

phl-resb.txt: phl-res.n3

phl-res.n3: phl-res.msg slurpItin.pl


#####
# quicken/quacken...
trip-phl.qif: trip-phl.q3 $(BUD)/qifReport.n3
	$(PYTHON) $(CWM) trip-phl.q3 $(BUD)/qifReport.n3 --think --strings > $@
	# show the total...
	$(PERL) -ne 'if(/^T(\S+)/){$$tot += $$1; print $$tot, "\n";}' trip-phl.qif
 
trip-phl.q3: trip-hip.n3 $(YVR)/dngr2qif.n3
	$(PYTHON) $(CWM) trip-hip.n3 $(YVR)/dngr2qif.n3 --think --data > $@
 
