[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / www / talks

File: [local] / www / talks / Makefile (download)

Revision 1.3, Sat Nov 24 20:11:13 2018 JST (5 years, 5 months ago) by hako
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines

misc

# Makefile by Hiroshi Hakoyama
VPATH = xml:template
.SUFFIXES : .xml .html
XMLS != if [ "`echo xml/*.xml`" != "xml/*.xml" ]; then cd xml; ls *.xml; else cd xml; expand.sh ~/web/bibtex/conference.bib; ls *.xml; fi
ARTICLES = $(XMLS:.xml=.html)

all: index.html atom.xml $(ARTICLES)

index: index.html $(ARTICLES)

index.html: talks-template.xml $(ARTICLES) $(XMLS)
	timestamp.sh template/talks-template.xml
	sblg -o $@ -t template/talks-template.xml $(ARTICLES)

.xml.html:
	timestamp.sh template/article-template.xml
	sblg -c -o $@ -t template/article-template.xml $<

atom.xml: atom-template.xml $(ARTICLES)
	sblg -o $@ -t template/atom-template.xml -a $(ARTICLES)

expand:
	cd xml; expand.sh ~/web/bibtex/conference.bib

clean:
	rm -f *.html
	rm -f xml/*.xml
	rm -f atom.xml