mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2025-01-08 13:29:54 +00:00
203 lines
4.6 KiB
Plaintext
203 lines
4.6 KiB
Plaintext
## --------------------------------- ##
|
|
## Format-independent Doxygen rules. ##
|
|
## --------------------------------- ##
|
|
|
|
DOXYGEN_INSTALL=
|
|
|
|
if DX_COND_doc
|
|
|
|
## ------------------------------- ##
|
|
## Rules specific for HTML output. ##
|
|
## ------------------------------- ##
|
|
|
|
if DX_COND_html
|
|
|
|
DX_CLEAN_HTML = @DX_DOCDIR@/html
|
|
|
|
doxygen-install-html:
|
|
$(INSTALL) -d $(DESTDIR)$(docdir)/html; \
|
|
$(INSTALL_DATA) @DX_DOCDIR@/html/* $(DESTDIR)$(docdir)/html;
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-html
|
|
|
|
endif DX_COND_html
|
|
|
|
## ------------------------------ ##
|
|
## Rules specific for CHM output. ##
|
|
## ------------------------------ ##
|
|
|
|
if DX_COND_chm
|
|
|
|
DX_CLEAN_CHM = @DX_DOCDIR@/chm
|
|
|
|
if DX_COND_chi
|
|
|
|
DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
|
|
|
|
endif DX_COND_chi
|
|
|
|
doxygen-install-chm:
|
|
$(INSTALL) -d $(DESTDIR)$(docdir)/chm; \
|
|
$(INSTALL_DATA) @DX_DOCDIR@/chm/* $(DESTDIR)$(docdir)/chm;
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-chm
|
|
|
|
endif DX_COND_chm
|
|
|
|
## ------------------------------ ##
|
|
## Rules specific for MAN output. ##
|
|
## ------------------------------ ##
|
|
|
|
if DX_COND_man
|
|
|
|
DX_CLEAN_MAN = @DX_DOCDIR@/man
|
|
|
|
doxygen-install-man:
|
|
$(INSTALL) -d $(DESTDIR)$(docdir)/man; \
|
|
$(INSTALL_DATA) @DX_DOCDIR@/man/* $(DESTDIR)$(docdir)/man;
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-man
|
|
endif DX_COND_man
|
|
|
|
## ------------------------------ ##
|
|
## Rules specific for RTF output. ##
|
|
## ------------------------------ ##
|
|
|
|
if DX_COND_rtf
|
|
|
|
DX_CLEAN_RTF = @DX_DOCDIR@/rtf
|
|
|
|
doxygen-install-rtf:
|
|
$(INSTALL) -d $(DESTDIR)$(docdir)/rtf; \
|
|
$(INSTALL_DATA) @DX_DOCDIR@/rtf/* $(DESTDIR)$(docdir)/rtf;
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-rtf
|
|
endif DX_COND_rtf
|
|
|
|
## ------------------------------ ##
|
|
## Rules specific for XML output. ##
|
|
## ------------------------------ ##
|
|
|
|
if DX_COND_xml
|
|
|
|
DX_CLEAN_XML = @DX_DOCDIR@/xml
|
|
|
|
doxygen-install-xml:
|
|
$(INSTALL) -d $(DESTDIR)$(docdir)/xml; \
|
|
$(INSTALL_DATA) @DX_DOCDIR@/xml/* $(DESTDIR)$(docdir)/xml;
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-xml
|
|
|
|
endif DX_COND_xml
|
|
|
|
## ----------------------------- ##
|
|
## Rules specific for PS output. ##
|
|
## ----------------------------- ##
|
|
|
|
if DX_COND_ps
|
|
|
|
DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
|
|
|
|
DX_PS_GOAL = doxygen-ps
|
|
|
|
doxygen-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.dvi
|
|
|
|
doxygen-install-ps:
|
|
$(INSTALL_DATA) @DX_DOCDIR@/@PACKAGE@.ps $(DESTDIR)$(docdir);
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-ps
|
|
endif DX_COND_ps
|
|
|
|
## ------------------------------ ##
|
|
## Rules specific for PDF output. ##
|
|
## ------------------------------ ##
|
|
|
|
if DX_COND_pdf
|
|
|
|
DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
|
|
|
|
DX_PDF_GOAL = doxygen-pdf
|
|
|
|
doxygen-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@.pdf
|
|
|
|
doxygen-install-pdf:
|
|
$(INSTALL_DATA) @DX_DOCDIR@/@PACKAGE@.pdf $(DESTDIR)$(docdir);
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-pdf
|
|
endif DX_COND_pdf
|
|
|
|
## ------------------------------------------------- ##
|
|
## Rules specific for LaTeX (shared for PS and PDF). ##
|
|
## ------------------------------------------------- ##
|
|
|
|
if DX_COND_latex
|
|
|
|
DX_CLEAN_LATEX = @DX_DOCDIR@/latex
|
|
|
|
doxygen-install-latex:
|
|
$(INSTALL) -d $(DESTDIR)$(docdir)/latex; \
|
|
$(INSTALL_DATA) @DX_DOCDIR@/latex/* $(DESTDIR)$(docdir)/latex;
|
|
|
|
DOXYGEN_INSTALL+= doxygen-install-latex
|
|
endif DX_COND_latex
|
|
|
|
.PHONY: doxygen-run doxygen-doc doxygen-install $(DX_PS_GOAL) $(DX_PDF_GOAL)
|
|
|
|
.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
|
|
|
|
doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
|
|
|
|
doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
|
|
|
|
doxygen-install: $(DOXYGEN_INSTALL)
|
|
|
|
@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
|
|
rm -rf @DX_DOCDIR@
|
|
$(DX_ENV) $(DX_DOXYGEN) $(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
|
|
|