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

File: [local] / www / publications / 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: +8 -8 lines

misc

# Makefile by Hiroshi Hakoyama
.SUFFIXES : .xml .html
PAPERSXMLS != if [ "`echo papers/*.xml`" != "papers/*.xml" ]; then ls papers/*.xml; else cd papers; expand.sh ~/web/bibtex/papers.bib; cd ..; ls papers/*.xml; fi
BOOKSXMLS != if [ "`echo books/*.xml`" != "books/*.xml" ]; then ls books/*.xml; else cd books; expand.sh ~/web/bibtex/books.bib; cd ..; ls books/*.xml; fi
PROCEEDINGSXMLS != if [ "`echo proceedings_misc/*.xml`" != "proceedings_misc/*.xml" ]; then ls proceedings_misc/*.xml; else cd proceedings_misc; expand.sh ~/web/bibtex/proceedings_misc.bib; cd ..; ls proceedings_misc/*.xml; fi
TECHREPORTSXMLS != if [ "`echo techreports/*.xml`" != "techreports/*.xml" ]; then ls techreports/*.xml; else cd techreports; expand.sh ~/web/bibtex/techreports.bib; cd ..; ls techreports/*.xml; fi
PAPERS = $(PAPERSXMLS:.xml=.html)
BOOKS = $(BOOKSXMLS:.xml=.html)
PROCEEDINGS = $(PROCEEDINGSXMLS:.xml=.html)
TECHREPORTS = $(TECHREPORTSXMLS:.xml=.html)

all: index.html atom.xml $(PAPERS) $(BOOKS) $(PROCEEDINGS) $(TECHREPORTS)

index: index.html $(PAPERS) $(BOOKS) $(PROCEEDINGS) $(TECHREPORTS)

index.html: $(PAPERS) $(BOOKS) $(PROCEEDINGS) $(TECHREPORTS)
	timestamp.sh ./template/publications-template.xml
	sblg -o $@ -t ./template/publications-template.xml $(PAPERS) $(BOOKS) $(PROCEEDINGS) $(TECHREPORTS)

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

timestamp:
	timestamp.sh ./template/article-template.xml

atom: atom.xml $(PAPERS) $(BOOKS) $(PROCEEDINGS)

atom.xml: $(PAPERS) $(BOOKS) $(PROCEEDINGS)
	sblg -o $@ -t ./template/atom-template.xml -a $(PAPERS) $(BOOKS) $(PROCEEDINGS)

expand:
	cd papers; expand.sh ~/web/bibtex/papers.bib
	cd books;  expand.sh ~/web/bibtex/books.bib
	cd proceedings_misc; expand.sh ~/web/bibtex/proceedings_misc.bib
	cd techreports; expand.sh ~/web/bibtex/techreports.bib

clean:
	rm -f papers/*.html
	rm -f books/*.html
	rm -f proceedings_misc/*.html
	rm -f techreports/*.html
	rm -f papers/*.xml
	rm -f books/*.xml
	rm -f proceedings_misc/*.xml
	rm -f techreports/*.xml
	rm -f index.html
	rm -f atom.xml