X-Git-Url: http://git.indexdata.com/?p=mp-sparql-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile;h=f0eaa11923127d2578080e0c257c2bb5b6404d78;hp=a044d6d1bc5c58aa90bede9719ef4d7989e0aaa8;hb=fc99a8fd59e8ff0862fabfa7eeeafd1340202498;hpb=fd951f5b39fc73d6f4d97b93965ec1f3b6d9407b diff --git a/doc/Makefile b/doc/Makefile index a044d6d..f0eaa11 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,25 +4,36 @@ 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) $< @@ -31,6 +42,9 @@ clean: distclean: clean +local.ent: local.ent.in + sed "s/@VERSION@/$(VERSION)/" local.ent + check: all install: