mirror of
https://github.com/ipxe/ipxe
synced 2025-12-18 02:20:19 +03:00
Added rules to generate documentation using doxygen
This commit is contained in:
@@ -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 :
|
||||
|
||||
Reference in New Issue
Block a user