# open source tools
PYTHON=python
XSLTPROC=xsltproc
TIDY=tidy
RAPPER=rapper

# stuff outside this directory
#HOME=/home/connolly
W=$(HOME)/w3ccvs/WWW
SWAP=$(W)/2000/10/swap
CAL=$(W)/2002/12/cal


ITIN=aa-edi13

.SUFFIXES: .ics .i3 .rdf .xcal .html

.rdf.ics:
	PYTHONPATH=$(SWAP):$(CAL) $(PYTHON) $(SWAP)/pim/toIcal.py $< >$@


$(ITIN)-uf.ics: $(ITIN)-uf.rdf

$(ITIN)-uf.rdf: $(ITIN)-full.html
	$(RAPPER) -i grddl -o rdfxml-abbrev -q $< >$@

$(ITIN)-full.html: $(ITIN)-t.html itin-enrich.xsl
	$(XSLTPROC) --novalid --output $@ itin-enrich.xsl $(ITIN)-t.html

$(ITIN)-t.html: $(ITIN).html
	$(TIDY) -q -i -asxml -n -ascii -c $(ITIN).html >$@
