| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 | # Copyright (C) 2004 Oren Ben-Kiki# This file is distributed under the same terms as the Automake macro files.# Generate automatic documentation using Doxygen. Goals and variables values# are controlled by the various DX_COND_??? conditionals set by autoconf.## The provided goals are:# doxygen-doc: Generate all doxygen documentation.# doxygen-run: Run doxygen, which will generate some of the documentation#              (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post#              processing required for the rest of it (PS, PDF, and some MAN).# doxygen-man: Rename some doxygen generated man pages.# doxygen-ps: Generate doxygen PostScript documentation.# doxygen-pdf: Generate doxygen PDF documentation.## Note that by default these are not integrated into the automake goals. If# doxygen is used to generate man pages, you can achieve this integration by# setting man3_MANS to the list of man pages generated and then adding the# dependency:##   $(man3_MANS): doxygen-doc## This will cause make to run doxygen and generate all the documentation.## The following variable is intended for use in Makefile.am:## DX_CLEANFILES = everything to clean.## This is usually added to MOSTLYCLEANFILES.## --------------------------------- #### Format-independent Doxygen rules. #### --------------------------------- ##if DX_COND_doc## ------------------------------- #### Rules specific for HTML output. #### ------------------------------- ##if DX_COND_htmlDX_CLEAN_HTML = @DX_DOCDIR@/htmlendif DX_COND_html## ------------------------------ #### Rules specific for CHM output. #### ------------------------------ ##if DX_COND_chmDX_CLEAN_CHM = @DX_DOCDIR@/chmif DX_COND_chiDX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chiendif DX_COND_chiendif DX_COND_chm## ------------------------------ #### Rules specific for MAN output. #### ------------------------------ ##if DX_COND_manDX_CLEAN_MAN = @DX_DOCDIR@/manendif DX_COND_man## ------------------------------ #### Rules specific for RTF output. #### ------------------------------ ##if DX_COND_rtfDX_CLEAN_RTF = @DX_DOCDIR@/rtfendif DX_COND_rtf## ------------------------------ #### Rules specific for XML output. #### ------------------------------ ##if DX_COND_xmlDX_CLEAN_XML = @DX_DOCDIR@/xmlendif DX_COND_xml## ----------------------------- #### Rules specific for PS output. #### ----------------------------- ##if DX_COND_psDX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.psDX_PS_GOAL = doxygen-psdoxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag	cd @DX_DOCDIR@/latex; \	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \	$(DX_LATEX) refman.tex; \	$(MAKEINDEX_PATH) refman.idx; \	$(DX_LATEX) refman.tex; \	countdown=5; \	while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \	                  refman.log > /dev/null 2>&1 \	   && test $$countdown -gt 0; do \	    $(DX_LATEX) refman.tex; \	    countdown=`expr $$countdown - 1`; \	done; \	$(DX_DVIPS) -o ../@PACKAGE@.ps refman.dviendif DX_COND_ps## ------------------------------ #### Rules specific for PDF output. #### ------------------------------ ##if DX_COND_pdfDX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdfDX_PDF_GOAL = doxygen-pdfdoxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag	cd @DX_DOCDIR@/latex; \	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \	$(DX_PDFLATEX) refman.tex; \	$(DX_MAKEINDEX) refman.idx; \	$(DX_PDFLATEX) refman.tex; \	countdown=5; \	while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \	                  refman.log > /dev/null 2>&1 \	   && test $$countdown -gt 0; do \	    $(DX_PDFLATEX) refman.tex; \	    countdown=`expr $$countdown - 1`; \	done; \	mv refman.pdf ../@PACKAGE@.pdfendif DX_COND_pdf## ------------------------------------------------- #### Rules specific for LaTeX (shared for PS and PDF). #### ------------------------------------------------- ##if DX_COND_latexDX_CLEAN_LATEX = @DX_DOCDIR@/latexendif DX_COND_latex.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL).INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)doxygen-run: @DX_DOCDIR@/@PACKAGE@.tagdoxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)	rm -rf @DX_DOCDIR@	$(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)DX_CLEANFILES = \    @DX_DOCDIR@/@PACKAGE@.tag \    -r \    $(DX_CLEAN_HTML) \    $(DX_CLEAN_CHM) \    $(DX_CLEAN_CHI) \    $(DX_CLEAN_MAN) \    $(DX_CLEAN_RTF) \    $(DX_CLEAN_XML) \    $(DX_CLEAN_PS) \    $(DX_CLEAN_PDF) \    $(DX_CLEAN_LATEX)endif DX_COND_doc
 |