# $Id: Makefile,v 1.3 2007/03/07 16:08:15 hhalpin Exp $

MKDIR=mkdir
XSLTPROC=xsltproc
XPLANET=xplanet
PYTHON=python
PERL=perl
CURL=curl
RSYNC=rsync
CREDS=/home/hhalpin/.ssh/id_rsa.pub

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

DCAMS=$(W)/2004/04dc-ams

all: weekly-agenda.rdf ,agenda-convene.html ,telcon-times.n3

weekly-agenda.rdf: weekly-agenda.html agendaData.xsl
	$(XSLTPROC) --output $@ --novalid agendaData.xsl weekly-agenda.html

TELDATE=2006-08-09
TELTIME=19:30Z
PREVRECORD=http://lists.w3.org/Archives/Public/public-rdf-dawg/2004OctDec/0394.html
GRPHOME=http://www.w3.org/2001/sw/grddl-wg/
,telcon-times.n3: ,who-where.n3 telconLocalTimes.n3
	$(PYTHON) $(CWM) telconLocalTimes.n3 ,who-where.n3 --think --data --with $(TELDATE)T$(TELTIME) >$@

,who-where.n3: ,who.rdf $(SWAP)/pim/cityLookup.n3
	$(PYTHON) $(CWM) ,who.rdf $(SWAP)/pim/cityLookup.n3 --think --data >$@

,agenda-convene.html: agendaAdminFmt.n3 ,agenda.rdf
	$(PYTHON) $(CWM) agendaAdminFmt.n3 ,agenda.rdf --think --strings >$@

,agenda.txt: agendaFmt.n3 ,agenda.rdf
	$(PYTHON) $(CWM) agendaFmt.n3 ,agenda.rdf --think --strings >$@

#@@RFE: incorporate ,agn7Dec.n3 agenda exceptions, ,rec2004-11-30.n3 formalized record
,agenda.rdf: ,telres.rdf agendaBuild.n3 
	$(PYTHON) $(CWM) agendaBuild.n3 ,telres.rdf --think --data --rdf --with $(TELDATE)T$(TELTIME) $(GRPHOME) $(PREVRECORD) >$@

,telres.rdf:
	$(CURL) -o $@ --basic --user $(CREDS) 'http://www.w3.org/Guide/1998/08/teleconference.rdf'

