Home | History | Annotate | Download | only in doc
      1 RM=rm
      2 MANDIR=$(DESTDIR)@mandir@/man1
      3 
      4 XSLTPROC=xsltproc
      5 XSLTPROC_FLAGS=@XSLTPROC_FLAGS@
      6 XHTML_STYLESHEET=$(srcdir)/xsl/xhtml.xsl
      7 CHUNK_XHTML_STYLESHEET=$(srcdir)/xsl/xhtml-chunk.xsl
      8 XML_CATALOG_FILES=xsl/catalog.xml
      9 STYLESHEETS=$(CHUNK_XHTML_STYLESHEET) $(srcdir)/xsl/xhtml-common.xsl
     10 
     11 man_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 
     21 htmldir = $(prefix)/share/doc/oprofile
     22 dist_html_DATA = oprofile.html internals.html opreport.xsd op-jit-devel.html
     23 
     24 if have_xsltproc
     25 
     26 oprofile.html: ${top_srcdir}/doc/oprofile.xml
     27 	XML_CATALOG_FILES=$(XML_CATALOG_FILES) $(XSLTPROC) $(XSLTPROC_FLAGS) -o $@ --stringparam version @VERSION@ $(XHTML_STYLESHEET) $<
     28 
     29 op-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 
     32 internals.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 
     37 doc/index.html: ${top_srcdir}/doc/oprofile.xml
     38 	-mkdir doc/
     39 	$(XSLTPROC) -o doc/ $(XSLTPROC_FLAGS) --stringparam version @VERSION@ $(CHUNK_XHTML_STYLESHEET) $<
     40 
     41 doc/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 
     45 doc/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 
     49 chunk: doc/index.html doc/internals/index.html doc/devel/index.html
     50 	cp ${top_srcdir}/doc/buffers.png doc/internals/
     51 
     52 else
     53 
     54 oprofile.html:
     55 	touch $@
     56 
     57 internals.html:
     58 	touch $@
     59 
     60 op-jit-devel.html:
     61 	touch $@
     62 
     63 chunk:
     64 
     65 endif
     66 
     67 distclean-local:
     68 	$(RM) -f xsl/catalog-1.xml xsl/catalog.xml
     69 
     70 clean-local:
     71 	$(RM) -f $(generated_mans)
     72 
     73 # these files are not cleaned by make uninstall automake bug ?
     74 uninstall-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 
     80 EXTRA_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
     93