# DOCURI is the location of the document... DOCURI=http://www.ivoa.net/foo/bar VERSION=0.22 RELEASEDATE=2008 October 28 XSLTPROC=xsltproc BIBTEX=bibtex #XSLTPROC="/opt/local/bin/xsltproc" #BIBTEX="/usr/local/texlive/2007/bin/i386-darwin/bibtex" #RAPPER="/opt/local/bin/rapper" # The following is becoming unwieldy: it would seem better if the vocabularies.xml # and vocabularies-issues.xml files were replaced by foo.xml.in, and substituted # by configure. However that makes the build process that little bit more # opaque, so it's probably best overall to this as it is. edit=sed -e 's/@VERSION\@/$(VERSION)/g' \ -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \ -e 's,@DOCURI\@,$(DOCURI),g' \ -e 's,\$$\([A-Z][A-Za-z]*:[^$$]*\)\$$,\1,g' #edit=sed -e 's/@VERSION\@/$(VERSION)/g' \ # -e 's/@RELEASEDATE\@/$(RELEASEDATE)/g' \ # -e 's,@DISTURI\@,$(DISTURI),g' \ # -e 's,@BASEURI\@,$(BASEURI),g' \ # -e 's,@DISTNAME\@,$(DISTNAME),g' \ # -e 's,@ISSUESLIST\@,$(ISSUESLIST),g' \ # -e 's,\$$\([A-Z][A-Za-z]*:[^$$]*\)\$$,\1,g' # Rules for creating note.xhtml from note.xml %.aux: %.xml structure.xslt rm -f $@ $@.tmp $(XSLTPROC) --stringparam document-id $< --stringparam target aux \ structure.xslt $< >$@.tmp && mv $@.tmp $@ # java -jar $(SAXONJAR) $< structure.xslt document-id=$< target=aux >$@.tmp && mv $@.tmp $@ # Use printf rather than echo, since difference echo implementations treat # \b in different ways (some as the pair of characters "\b", others as a backspace). printf '\\bibstyle{plainhtml}\n' >> $@ # Following relies on BIBINPUTS and BSTINPUTS being set OK. %.bbl: %.aux refs.bib rm -f $@ $@.tmp BSTINPUTS=. $(BIBTEX) $* sed -e '1s+