all:
	./updatearchive.pl talks.xml
	/anfs/www/tools/bin/ucampas *-b.html ..

# Call "make update-talks.xml" regularly to keep the local
# backup of the talks database up to date. This excludes
# future talks, as the details of these frequently change.
# https://talks.cam.ac.uk/document/specification
XML_URL=http://talks.cam.ac.uk/show/xml/5695?start_seconds=0&seconds_after_today=86400
talks.xml: phony
	svn update $@
	curl -L -o $@ '$(XML_URL)'

update-talks.xml: talks.xml
	svn commit -m 'updated talks.xml from $(XML_URL)' talks.xml

phony:

clean:
	rm -f *~ \#*#
