X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2FMakefile;h=366c266a8274c96b01f208e73dd99d0df5c1c659;hb=6ef7b5922db33bb0294caf39a18359a97ea9cac8;hp=a044d6d1bc5c58aa90bede9719ef4d7989e0aaa8;hpb=fd951f5b39fc73d6f4d97b93965ec1f3b6d9407b;p=mp-sparql-moved-to-github.git diff --git a/doc/Makefile b/doc/Makefile index a044d6d..366c266 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,33 +4,47 @@ prefix = /usr +VERSION=$(shell . ../IDMETA; echo $$VERSION) + XSLTPROC_COMPILE = xsltproc --xinclude -path "." -HTML_COMPILE = $(XSLTPROC_COMPILE) id.htmlhelp.xsl -MAN_COMPILE = $(XSLTPROC_COMPILE) id.man.xsl +PDF_COMPILE = dblatex -P latex.class.options=a4paper,12pt,twoside,openright +HTML_COMPILE = $(XSLTPROC_COMPILE) common/id.htmlhelp.xsl +MAN_COMPILE = $(XSLTPROC_COMPILE) common/id.man.xsl REFFILES = sparql.xml MANFILES=sparql.3mp XMLFILES=book.xml manref.xml -all: $(MANFILES) +all: index.html $(MANFILES) -index.html: $(XMLFILES) +index.html: $(XMLFILES) local.ent $(HTML_COMPILE) book.xml +sparql.html: sparql.xml + $(HTML_COMPILE) sparql.xml local.ent + manref.xml: $(REFFILES) rm -f manref.xml for i in $(REFFILES); do \ xsltproc stripref.xsl $$i | sed 1d >>manref.xml; \ done +mp-sparql.pdf: $(XMLFILES) local.ent + rm -f mp-sparql.pdf + $(PDF_COMPILE) book.xml + mv book.pdf mp-sparql.pdf + .xml.3mp: $(MAN_COMPILE) $< clean: - rm -f *.html *.pdf manref.xml *.hhp *.hhc $(MANFILES) + rm -f local.ent *.html *.pdf manref.xml *.hhp *.hhc $(MANFILES) distclean: clean +local.ent: local.ent.in + sed "s/@VERSION@/$(VERSION)/" local.ent + check: all install: