# $Id: Makefile,v 1.5 2007/02/16 20:11:15 connolly Exp $ WGET=wget PYTHON=python XSLTPROC=xsltproc TIDY=tidy W=../../.. SWAP=$(W)/2000/10/swap CAL=$(W)/2002/12/cal .SUFFIXES: .rdf .ics .html .rdf.ics: PYTHONPATH=$(SWAP):$(CAL) $(PYTHON) $(SWAP)/pim/toIcal.py \ $< >$@ .rdf.html: $(XSLTPROC) -o $@ ,ical.xsl $< mit_holidays.ics: mit_holidays.rdf mit_holidays.rdf: ,mit_holidays-t.html grokHolidays.xsl $(XSLTPROC) -o $@ grokHolidays.xsl ,mit_holidays-t.html ,mit_holidays-t.html: ,mit_holidays.html $(TIDY) -q -asxml -n -o $@ ,mit_holidays.html ,mit_holidays.html: $(WGET) -O $@ http://hrweb.mit.edu/holidays.html soccer.ics: soccer.rdf soccer.html: soccer.rdf ,ical.xsl $(XSLTPROC) -o $@ ,ical.xsl soccer.rdf ,ical.xsl: $(WGET) -O $@ http://kanzaki.com/parts/ical.xsl $(WGET) $@ http://kanzaki.com/parts/banner-footer.xsl soccer.rdf: ,soccer-t.html grokSched.xsl $(XSLTPROC) -o $@ grokSched.xsl ,soccer-t.html ,soccer-t.html: ,soccer.html $(TIDY) -q -asxml -n -o $@ ,soccer.html ,soccer.html: $(WGET) -O $@ 'http://www.heartlandsoccer.net/cgi-jrb/team_schedule.cgi?team_number=3322' ,em.html: ,em.rdf ,em.rdf: ,em.ics PYTHONPATH=$(SWAP):$(CAL) $(PYTHON) $(CAL)/fromIcal.py \ ,em.ics >$@