mirror of
https://github.com/ipxe/ipxe
synced 2026-02-08 22:03:27 +03:00
[doc] Expand scope of doxygen-generated documentation
This commit is contained in:
@@ -292,6 +292,11 @@ MAKEDEPS += arch/$(ARCH)/Makefile
|
||||
include arch/$(ARCH)/Makefile
|
||||
endif
|
||||
|
||||
# Include architecture-specific include path
|
||||
ifdef ARCH
|
||||
INCDIRS += arch/$(ARCH)/include
|
||||
endif
|
||||
|
||||
###############################################################################
|
||||
#
|
||||
# Source file handling
|
||||
@@ -320,9 +325,13 @@ autosrcs :
|
||||
|
||||
ifdef BIN
|
||||
|
||||
# INCDIRS lists the include path
|
||||
incdirs :
|
||||
@$(ECHO) $(INCDIRS)
|
||||
|
||||
# Common flags
|
||||
#
|
||||
CFLAGS += -I include -I arch/$(ARCH)/include -I .
|
||||
CFLAGS += $(foreach INC,$(INCDIRS),-I$(INC))
|
||||
CFLAGS += -Os
|
||||
CFLAGS += -g
|
||||
ifeq ($(CCTYPE),gcc)
|
||||
@@ -953,20 +962,24 @@ endif # defined(BIN)
|
||||
ifdef BIN
|
||||
|
||||
$(BIN)/doxygen.cfg : doxygen.cfg $(MAKEDEPS)
|
||||
$(PERL) -pe 's{\@SRCDIRS\@}{$(SRCDIRS)}; ' \
|
||||
$(Q)$(PERL) -pe 's{\@SRCDIRS\@}{$(SRCDIRS)}; ' \
|
||||
-e 's{\@INCDIRS\@}{$(filter-out .,$(INCDIRS))}; ' \
|
||||
-e 's{\@BIN\@}{$(BIN)}; ' \
|
||||
-e 's{\@ARCH\@}{$(ARCH)}; ' \
|
||||
$< > $@
|
||||
|
||||
$(BIN)/doc : $(BIN)/doxygen.cfg
|
||||
$(DOXYGEN) $<
|
||||
$(Q)$(DOXYGEN) $<
|
||||
|
||||
.PHONY : $(BIN)/doc
|
||||
|
||||
VERYCLEANUP += $(BIN)/doc
|
||||
|
||||
doc : $(BIN)/doc
|
||||
|
||||
doc-clean :
|
||||
$(Q)$(RM) -r $(BIN)/doc
|
||||
|
||||
VERYCLEANUP += $(BIN)/doc
|
||||
|
||||
docview :
|
||||
@[ -f $(BIN)/doc/html/index.html ] || $(MAKE) $(BIN)/doc
|
||||
@if [ -n "$$BROWSER" ] ; then \
|
||||
|
||||
Reference in New Issue
Block a user