X-Git-Url: http://git.indexdata.com/?p=mp-xquery-moved-to-github.git;a=blobdiff_plain;f=doc%2FMakefile;h=18f3b8a40ff2227a33fd0a209786a954662e798e;hp=58eceffbf62fedd043d54f3bfba556829a1b7a72;hb=5351ee1f34c25d57cab28a72c75dc29d96286d15;hpb=b335d52a8220fc3623545f622aff883f1fbb77bd diff --git a/doc/Makefile b/doc/Makefile index 58eceff..18f3b8a 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -4,6 +4,8 @@ prefix = /usr +VERSION=$(shell . ../IDMETA; echo $$VERSION) + XSLTPROC_COMPILE = xsltproc --xinclude -path "." HTML_COMPILE = $(XSLTPROC_COMPILE) common/id.htmlhelp.xsl MAN_COMPILE = $(XSLTPROC_COMPILE) common/id.man.xsl @@ -14,10 +16,10 @@ XMLFILES=book.xml manref.xml 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: