Makefile.am revision cc2ee177dbb3befca43e36cfc56778b006c3d050
1RM=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 20htmldir = $(prefix)/share/doc/oprofile 21dist_html_DATA = oprofile.html internals.html 22 23if have_xsltproc 24 25oprofile.html: ${top_srcdir}/doc/oprofile.xml 26 XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< 27 28internals.html: ${top_srcdir}/doc/internals.xml 29 XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $< 30 31# rules to generate oprofile.sf.net/doc files 32 33doc/index.html: ${top_srcdir}/doc/oprofile.xml 34 -mkdir doc/ 35 $(XSLTPROC) -o doc/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< 36 37doc/internals/index.html: ${top_srcdir}/doc/internals.xml 38 -mkdir doc/internals/ 39 $(XSLTPROC) -o doc/internals/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $< 40 41chunk: doc/index.html doc/internals/index.html 42 cp ${top_srcdir}/doc/buffers.png doc/internals/ 43 44else 45 46oprofile.html: 47 touch $@ 48 49internals.html: 50 touch $@ 51 52chunk: 53 54endif 55 56distclean-local: 57 $(RM) -f xsl/catalog-1.xml xsl/catalog.xml 58 59clean-local: 60 $(RM) -f $(generated_mans) 61 62# these files are not cleaned by make uninstall automake bug ? 63uninstall-local: 64 rm -f @mandir@/cat1/oprofile.1.gz 65 @for f in $(LINK_LIST); do \ 66 rm -f $(CATDIR)/cat1/$$f.gz; \ 67 done 68 69EXTRA_DIST = \ 70 oprofile.1 \ 71 oprofile.1.in \ 72 oprofile.xml \ 73 internals.xml \ 74 xsl/catalog-1.xml.in \ 75 xsl/xhtml.xsl \ 76 xsl/xhtml-common.xsl \ 77 xsl/xhtml-chunk.xsl \ 78 srcdoc/Doxyfile.in \ 79 srcdoc/Makefile 80