X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile;h=18f3b8a40ff2227a33fd0a209786a954662e798e;hp=a63b692b5cfca77a5985942753c7e4b61d92ea6e;hb=5351ee1f34c25d57cab28a72c75dc29d96286d15;hpb=e4ef45f0b7454a8df22d4e80406f2448cd5757fc diff --git a/doc/Makefile b/doc/Makefile index a63b692..18f3b8a 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,20 +4,22 @@ 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 +HTML_COMPILE = $(XSLTPROC_COMPILE) common/id.htmlhelp.xsl +MAN_COMPILE = $(XSLTPROC_COMPILE) common/id.man.xsl REFFILES = xquery.xml MANFILES=xquery.3mp XMLFILES=book.xml manref.xml -all: $(MANFILES) +all: index.html $(MANFILES) -index.html: $(XMLFILES) +index.html: $(XMLFILES) local.ent $(HTML_COMPILE) book.xml -manref.xml: $(REFFILES) +manref.xml: $(REFFILES) local.ent rm -f manref.xml for i in $(REFFILES); do \ xsltproc stripref.xsl $$i | sed 1d >>manref.xml; \ @@ -31,6 +33,9 @@ clean: distclean: clean +local.ent: local.ent.in + sed "s/@VERSION@/$(VERSION)/" local.ent + check: all install: