diff options
author | Michael Brown <mcb30@etherboot.org> | 2009-08-11 15:14:36 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2009-08-11 15:14:36 +0100 |
commit | b3db99a38d8822f29eae6f67ee6034c57284d06f (patch) | |
tree | ba2977520640ec4a7e8bf72f70f080982c6a384e /src/Makefile.housekeeping | |
parent | d5d68b2e310b8bf0caa6b8529f1ce7adbb92e771 (diff) | |
download | ipxe-b3db99a38d8822f29eae6f67ee6034c57284d06f.zip ipxe-b3db99a38d8822f29eae6f67ee6034c57284d06f.tar.gz ipxe-b3db99a38d8822f29eae6f67ee6034c57284d06f.tar.bz2 |
[doc] Expand scope of doxygen-generated documentation
Diffstat (limited to 'src/Makefile.housekeeping')
-rw-r--r-- | src/Makefile.housekeeping | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/Makefile.housekeeping b/src/Makefile.housekeeping index cf7a9c7..df2a620 100644 --- a/src/Makefile.housekeeping +++ b/src/Makefile.housekeeping @@ -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 \ |