blob: f84d4a8e40cbf662c0353da216e706c7fe7793ec [file] [log] [blame]
Mike Dodd8cfa7022010-11-17 11:12:26 -08001RM=rm
2MANDIR=$(DESTDIR)@mandir@/man1
3
4XSLTPROC=xsltproc
5XSLTPROC_FLAGS=@XSLTPROC_FLAGS@
6XHTML_STYLESHEET=$(srcdir)/xsl/xhtml.xsl
7CHUNK_XHTML_STYLESHEET=$(srcdir)/xsl/xhtml-chunk.xsl
8XML_CATALOG_FILES=xsl/catalog.xml
9STYLESHEETS=$(CHUNK_XHTML_STYLESHEET) $(srcdir)/xsl/xhtml-common.xsl
10
11man_MANS = \
12 oprofile.1 \
13 opcontrol.1 \
14 opreport.1 \
15 opannotate.1 \
16 opgprof.1 \
17 ophelp.1 \
18 oparchive.1 \
19 opimport.1
20
21htmldir = $(prefix)/share/doc/oprofile
22dist_html_DATA = oprofile.html internals.html opreport.xsd op-jit-devel.html
23
24if have_xsltproc
25
26oprofile.html: ${top_srcdir}/doc/oprofile.xml
27 XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $<
28
29op-jit-devel.html: ${top_srcdir}/doc/op-jit-devel.xml
30 XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $<
31
32internals.html: ${top_srcdir}/doc/internals.xml
33 XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $<
34
35# rules to generate oprofile.sf.net/doc files
36
37doc/index.html: ${top_srcdir}/doc/oprofile.xml
38 -mkdir doc/
39 $(XSLTPROC) -o doc/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $<
40
41doc/devel/index.html: ${top_srcdir}/doc/op-jit-devel.xml
42 -mkdir doc/devel/
43 $(XSLTPROC) -o doc/devel/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $<
44
45doc/internals/index.html: ${top_srcdir}/doc/internals.xml
46 -mkdir doc/internals/
47 $(XSLTPROC) -o doc/internals/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $<
48
49chunk: doc/index.html doc/internals/index.html doc/devel/index.html
50 cp ${top_srcdir}/doc/buffers.png doc/internals/
51
52else
53
54oprofile.html:
55 touch $@
56
57internals.html:
58 touch $@
59
60op-jit-devel.html:
61 touch $@
62
63chunk:
64
65endif
66
67distclean-local:
68 $(RM) -f xsl/catalog-1.xml xsl/catalog.xml
69
70clean-local:
71 $(RM) -f $(generated_mans)
72
73# these files are not cleaned by make uninstall automake bug ?
74uninstall-local:
75 rm -f @mandir@/cat1/oprofile.1.gz
76 @for f in $(LINK_LIST); do \
77 rm -f $(CATDIR)/cat1/$$f.gz; \
78 done
79
80EXTRA_DIST = \
81 oprofile.1 \
82 oprofile.1.in \
83 oprofile.xml \
84 op-jit-devel.xml \
85 internals.xml \
86 buffers.png \
87 xsl/catalog-1.xml.in \
88 xsl/xhtml.xsl \
89 xsl/xhtml-common.xsl \
90 xsl/xhtml-chunk.xsl \
91 srcdoc/Doxyfile.in \
92 srcdoc/Makefile