Added rules to generate documentation using doxygen

This commit is contained in:
Michael Brown
2005-05-18 11:13:34 +00:00
parent 2d9fa8a1d9
commit 8bf7902141
2 changed files with 214 additions and 0 deletions

View File

@@ -422,6 +422,28 @@ $(BIN)/%.rebuild :
rm -f $(BIN)/$*
$(MAKE) $(MAKEFLAGS) $(BIN)/$*
# Documentation
#
$(BIN)/doxygen.cfg : doxygen.cfg $(MAKEDEPS)
$(PERL) -pe 's{\@SRCDIRS\@}{$(SRCDIRS)}; s{\@BIN\@}{$(BIN)};' $< > $@
$(BIN)/doc : $(BIN)/doxygen.cfg
$(DOXYGEN) $<
.PHONY : $(BIN)/doc
VERYCLEANUP += $(BIN)/doc
doc : $(BIN)/doc
docview :
@[ -f $(BIN)/doc/html/index.html ] || $(MAKE) $(BIN)/doc
@if [ -n "$$BROWSER" ] ; then \
( $$BROWSER $(BIN)/doc/html/index.html & ) ; \
else \
echo "Documentation index in $(BIN)/doc/html/index.html" ; \
fi
# Clean-up
#
clean :