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