Skip to content
Snippets Groups Projects
Commit 30387e31 authored by Christian Engwer's avatar Christian Engwer
Browse files

adjust Doxyfile depending on the state of the WML conditional

CLOSE bug #57

[[Imported from SVN: r478]]
parent 8d308eee
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ EXTRA_DIST = Doxyfile Doxydep \
doxy-footer.html doxy-header.html dune-doxy.css mainpage
if BUILD_DOCS
WHAT = bestpractice.html doxy-header.html doxygen-tag
WHAT = bestpractice.html doxygen-tag
endif
all: $(WHAT)
......@@ -14,18 +14,35 @@ all: $(WHAT)
BASEDIR=../..
CURDIR=doc/doxygen
EXTRAINSTALL = doxygen.log
# EXTRAINSTALL in the html subdirectory
DOXYGENINSTALL = *.html *.css *.png *.gif
if WML
# themeing doxygen
DOXYGENHEADER = doxy-header.html
DOXYGENFOOTER = doxy-footer.html
DOXYGENSTYLESHEET = dune-doxy.css
DOYXFILE_OVERWRITE = echo "HTML_HEADER = $(DOXYGENHEADER)"; \
echo "HTML_FOOTER = $(DOXYGENFOOTER)"; \
echo "HTML_STYLESHEET = $(DOXYGENSTYLESHEET)";
endif
# what files does the doxygen-generated stuff depend on (find-syntax)
DEPENDON = -name \*.cc -o -name \*.hh -o -name \*.png
# as all doxygen files fill be installed in the html subdirectory
# the BASEDIR has to be adjusted
doxy-header.html:BASEDIR=../../..
# check dependency ourself to be robust
doxygen-tag: FORCE
doxygen-tag: FORCE $(DOXYGENHEADER)
set -e; \
if test ! -e doxygen-tag || test x"`find $(top_srcdir) \( $(DEPENDON) \) -a -cnewer doxygen-tag -print`" != x ; then \
echo Running doxygen. This may take a while... ; \
$(DOXYGEN) > doxygen.log 2>&1 <&- ; \
( cat Doxyfile; $(DOYXFILE_OVERWRITE) ) > Doxyfile.tmp; \
$(DOXYGEN) Doxyfile.tmp > doxygen.log 2>&1 <&- ; \
rm -f Doxyfile.tmp; \
touch doxygen-tag ; \
fi
......@@ -48,6 +65,6 @@ include $(top_srcdir)/am/webstuff
clean-local:
rm -rf html latex *~
CLEANFILES = $(WHAT)
CLEANFILES = $(WHAT) $(DOXYGENHEADER)
include $(top_srcdir)/am/global-rules
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment