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

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

Revision 1.6, Wed Nov 7 20:14:09 2018 JST (5 years, 5 months ago) by hako
Branch: MAIN
CVS Tags: HEAD, BIBDESK_XML
Changes since 1.5: +1 -1 lines

user-scalable

# Makefile by Hiroshi Hakoyama
.SUFFIXES : .xml .html

PAPERS != cd publications; make -s; cd ..; ls publications/papers/*.html
BOOKS != cd publications; make -s; cd ..; ls publications/books/*.html
PROCEEDINGS != cd publications; make -s; cd ..; ls publications/proceedings_misc/*.html
BLOGS != cd blog; make -s; cd ..; ls blog/*.html | grep -v index
COURSES != cd course; make -s; cd ..; ls course/*.html | grep -v index
ABOUT != cd about; make -s
CV != cd CV; make -s
TALKS != cd talks; make -s
JA != cd ja; make -s

all: index.html atom.xml

index.html: index.xml
	transl.sh

index.xml: $(PAPERS) $(BOOKS) $(PROCEEDINGS) $(BLOGS) $(COURSES)
	sblg -o $@ -t ./template/main-template.xml $(PAPERS) $(BOOKS) $(PROCEEDINGS) $(BLOGS) $(COURSES)

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

clean:
	rm -f index.html
	rm -f index.xml
	rm -f atom.xml

clean-depends:
	LIST=`ls -F ~/web/keywords/ | grep -v ja | grep -v /`;\
			 for f in $$LIST ; do rm -rf $$f ; done
	rm -f index.html
	rm -f index.xml
	rm -f atom.xml
	cd about; make -s clean
	cd CV; make -s clean
	cd publications; make -s clean
	cd talks; make -s clean
	cd course; make -s clean
	cd blog; make -s clean
	cd ja; make -s clean

copyright:
	copyright.sh ./template/main-template.xml
	copyright.sh ./about/article-template.xml
	copyright.sh ./blog/template/article-template.xml
	copyright.sh ./blog/template/blog-template.xml
	copyright.sh ./CV/article-template.xml
	copyright.sh ./course/template/course-template.xml
	copyright.sh ./publications/template/article-template.xml
	copyright.sh ./publications/template/publications-template.xml
	copyright.sh ./talks/template/talks-template.xml
	copyright.sh ./ja/about/article-template.xml
	copyright.sh ./ja/CV/article-template.xml
	copyright.sh ./ja/course/template/course-template.xml
	copyright.sh ./ja/publications/template/publications-template.xml
	copyright.sh ./ja/talks/template/talks-template.xml