projects
/
mp-xquery-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Installation chapter
[mp-xquery-moved-to-github.git]
/
doc
/
Makefile
diff --git
a/doc/Makefile
b/doc/Makefile
index
697a7e8
..
18f3b8a
100644
(file)
--- a/
doc/Makefile
+++ b/
doc/Makefile
@@
-2,20
+2,24
@@
.PHONY: check all
.SUFFIXES: .3mp .xml .1
.PHONY: check all
.SUFFIXES: .3mp .xml .1
+prefix = /usr
+
+VERSION=$(shell . ../IDMETA; echo $$VERSION)
+
XSLTPROC_COMPILE = xsltproc --xinclude -path "."
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
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
$(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; \
rm -f manref.xml
for i in $(REFFILES); do \
xsltproc stripref.xsl $$i | sed 1d >>manref.xml; \
@@
-29,5
+33,12
@@
clean:
distclean: clean
distclean: clean
+local.ent: local.ent.in
+ sed "s/@VERSION@/$(VERSION)/" <local.ent.in >local.ent
+
check: all
check: all
+install:
+ mkdir -p $(DESTDIR)$(prefix)/share/man/man3
+ cp *.3mp $(DESTDIR)$(prefix)/share/man/man3/
+