source: trunk/FACT++/aminclude.am@ 13369

Last change on this file since 13369 was 10183, checked in by tbretz, 14 years ago
New import.
File size: 3.3 KB
Line 
1## --------------------------------- ##
2## Format-independent Doxygen rules. ##
3## --------------------------------- ##
4if DX_COND_doc
5@DX_CONFIG@:
6 $(DX_DOXYGEN) -g
7## ------------------------------- ##
8## Rules specific for HTML output. ##
9## ------------------------------- ##
10if DX_COND_html
11DX_CLEAN_HTML = @DX_DOCDIR@/html
12endif DX_COND_html
13## ------------------------------ ##
14## Rules specific for CHM output. ##
15## ------------------------------ ##
16if DX_COND_chm
17DX_CLEAN_CHM = @DX_DOCDIR@/chm
18if DX_COND_chi
19DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
20endif DX_COND_chi
21endif DX_COND_chm
22## ------------------------------ ##
23## Rules specific for MAN output. ##
24## ------------------------------ ##
25if DX_COND_man
26DX_CLEAN_MAN = @DX_DOCDIR@/man
27endif DX_COND_man
28## ------------------------------ ##
29## Rules specific for RTF output. ##
30## ------------------------------ ##
31if DX_COND_rtf
32DX_CLEAN_RTF = @DX_DOCDIR@/rtf
33endif DX_COND_rtf
34## ------------------------------ ##
35## Rules specific for XML output. ##
36## ------------------------------ ##
37if DX_COND_xml
38DX_CLEAN_XML = @DX_DOCDIR@/xml
39endif DX_COND_xml
40## ----------------------------- ##
41## Rules specific for PS output. ##
42## ----------------------------- ##
43if DX_COND_ps
44DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
45DX_PS_GOAL = doxygen-ps
46doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
47@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
48 cd @DX_DOCDIR@/latex; \
49 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
50 $(DX_LATEX) refman.tex; \
51 $(MAKEINDEX_PATH) refman.idx; \
52 $(DX_LATEX) refman.tex; \
53 countdown=5; \
54 while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
55 refman.log > /dev/null 2>&1 && test $$countdown -gt 0; \
56 do \
57 $(DX_LATEX) refman.tex; \
58 countdown=`expr $$countdown - 1`; \
59 done; \
60 $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
61endif DX_COND_ps
62## ------------------------------ ##
63## Rules specific for PDF output. ##
64## ------------------------------ ##
65if DX_COND_pdf
66DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
67DX_PDF_GOAL = doxygen-pdf
68doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
69@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
70 cd @DX_DOCDIR@/latex; \
71 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
72 $(DX_PDFLATEX) refman.tex; \
73 $(DX_MAKEINDEX) refman.idx; \
74 $(DX_PDFLATEX) refman.tex; \
75 countdown=5; \
76 while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
77 refman.log > /dev/null 2>&1 && test $$countdown -gt 0; \
78 do \
79 $(DX_PDFLATEX) refman.tex; \
80 countdown=`expr $$countdown - 1`; \
81 done; \
82 mv refman.pdf ../@PACKAGE@.pdf
83endif DX_COND_pdf
84## ------------------------------------------------- ##
85## Rules specific for LaTeX (shared for PS and PDF). ##
86## ------------------------------------------------- ##
87if DX_COND_latex
88DX_CLEAN_LATEX = @DX_DOCDIR@/latex
89endif DX_COND_latex
90.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
91.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
92doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
93doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
94@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
95 rm -rf @DX_DOCDIR@
96 $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
97DX_CLEANFILES = \
98 @DX_DOCDIR@/@PACKAGE@.tag \
99 -r \
100 $(DX_CLEAN_HTML) \
101 $(DX_CLEAN_CHM) \
102 $(DX_CLEAN_CHI) \
103 $(DX_CLEAN_MAN) \
104 $(DX_CLEAN_RTF) \
105 $(DX_CLEAN_XML) \
106 $(DX_CLEAN_PS) \
107 $(DX_CLEAN_PDF) \
108 $(DX_CLEAN_LATEX)
109endif DX_COND_doc
Note: See TracBrowser for help on using the repository browser.