3 .SUFFIXES: .3mp .xml .1
7 VERSION=$(shell . ../IDMETA; echo $$VERSION)
9 XSLTPROC_COMPILE = xsltproc --xinclude -path "."
10 PDF_COMPILE = dblatex -P latex.class.options=a4paper,12pt,twoside,openright
11 HTML_COMPILE = $(XSLTPROC_COMPILE) common/id.htmlhelp.xsl
12 MAN_COMPILE = $(XSLTPROC_COMPILE) common/id.man.xsl
16 XMLFILES=book.xml manref.xml
18 all: index.html $(MANFILES)
20 index.html: $(XMLFILES) local.ent
21 $(HTML_COMPILE) book.xml
23 manref.xml: $(REFFILES) local.ent
25 for i in $(REFFILES); do \
26 xsltproc stripref.xsl $$i | sed 1d >>manref.xml; \
29 mp-xquery.pdf: $(XMLFILES) local.ent
31 $(PDF_COMPILE) book.xml
32 mv book.pdf mp-xquery.pdf
38 rm -f *.html *.pdf manref.xml *.hhp *.hhc $(MANFILES)
42 local.ent: local.ent.in
43 sed "s/@VERSION@/$(VERSION)/" <local.ent.in >local.ent
48 mkdir -p $(DESTDIR)$(prefix)/share/man/man3
49 cp *.3mp $(DESTDIR)$(prefix)/share/man/man3/