Changeset 10226
- Timestamp:
- 07/04/08 15:05:24 (3 months ago)
- Files:
-
- trunk/Makefile.kmk (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Makefile.kmk
r10195 r10226 219 219 # 220 220 OTHER_CLEAN += \ 221 $(PATH_TARGET)/Doxyfile \222 $(PATH_TARGET)/Doxyfile. dep223 224 DOXYGEN_INPUT_DIRS = \221 $(PATH_TARGET)/Doxyfile.Core \ 222 $(PATH_TARGET)/Doxyfile.Core.dep 223 224 VBOX_CORE_DOXYFILE_INPUT_DIRS = \ 225 225 include/iprt \ 226 226 include/VBox \ … … 318 318 319 319 # These must come first in order to make things look nice. 320 DOXYGEN_INPUT_FIRST =\320 VBOX_CORE_DOXYFILE_INPUT_FIRST =\ 321 321 $(PATH_ROOT)/doc/VBox-doc.c \ 322 322 $(PATH_ROOT)/doc/VBox-CodingGuidelines.cpp \ … … 390 390 $(PATH_ROOT)/include/VBox/version.h 391 391 392 DOXYGEN_INPUT := \393 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $( DOXYGEN_INPUT_DIRS)))) ) \394 $(foreach dir, $( DOXYGEN_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm))395 DOXYGEN_INPUT := \396 $( DOXYGEN_INPUT_FIRST) \397 $(filter-out $( DOXYGEN_INPUT_FIRST), $(DOXYGEN_INPUT))392 VBOX_CORE_DOXYFILE_INPUT := \ 393 $(filter-out %.cpp.h, $(sort $(wildcard $(addsuffix /*.h, $(VBOX_CORE_DOXYFILE_INPUT_DIRS)))) ) \ 394 $(foreach dir, $(VBOX_CORE_DOXYFILE_INPUT_DIRS), $(wildcard $(dir)/*.cpp $(dir)/*.c $(dir)/.asm)) 395 VBOX_CORE_DOXYFILE_INPUT := \ 396 $(VBOX_CORE_DOXYFILE_INPUT_FIRST) \ 397 $(filter-out $(VBOX_CORE_DOXYFILE_INPUT_FIRST), $(VBOX_CORE_DOXYFILE_INPUT)) 398 398 399 399 # And some some additional stuff. 400 DOXYGEN_INPUT += \400 VBOX_CORE_DOXYFILE_INPUT += \ 401 401 $(PATH_ROOT)/src/recompiler/VBoxRecompiler.c \ 402 402 $(PATH_ROOT)/src/recompiler/VBoxREMWrapper.cpp 403 403 404 404 405 DOXYGEN_OUTPUT = $(PATH_OUT)/docs/Core406 407 -include $(PATH_TARGET)/Doxyfile. dep405 VBOX_CORE_DOXYFILE_OUTPUT = $(PATH_OUT)/docs/Core 406 407 -include $(PATH_TARGET)/Doxyfile.Core.dep 408 408 409 409 # Generate the Doxyfile 410 $(PATH_TARGET)/Doxyfile : Doxyfile.Core \411 $(comp-vars DOXYGEN_INPUT,DOXYGEN_INPUT_PREV,FORCE) \412 $(comp-vars DOXYGEN_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \410 $(PATH_TARGET)/Doxyfile.Core: Doxyfile.Core \ 411 $(comp-vars VBOX_CORE_DOXYFILE_INPUT,DOXYGEN_INPUT_PREV,FORCE) \ 412 $(comp-vars VBOX_CORE_DOXYFILE_OUTPUT,DOXYGEN_OUTPUT_PREV,FORCE) \ 413 413 | $(call DIRDEP, $(PATH_TARGET)) 414 $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile. dep414 $(RM) -f $@ $@.tmp $(PATH_TARGET)/Doxyfile.Core.dep 415 415 $(CP) -f Doxyfile.Core $@.tmp 416 416 $(APPEND) $@.tmp 417 $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $( DOXYGEN_OUTPUT)"418 $(APPEND) $@.tmp "WARN_LOGFILE = $( DOXYGEN_OUTPUT)/errors"417 $(APPEND) $@.tmp "OUTPUT_DIRECTORY = $(VBOX_CORE_DOXYFILE_OUTPUT)" 418 $(APPEND) $@.tmp "WARN_LOGFILE = $(VBOX_CORE_DOXYFILE_OUTPUT)/errors" 419 419 $(APPEND) $@.tmp "INCLUDE_PATH = $(PATH_ROOT)/include $(PATH_ROOT)/src/VBox/VMM $(PATH_ROOT)/src/VBox/Main/include " 420 420 $(APPEND) $@.tmp "INCLUDE_FILE_PATTERNS = *.cpp.h" 421 421 $(APPEND) $@.tmp 422 $(APPEND) $@.tmp "INPUT = $( DOXYGEN_INPUT)"422 $(APPEND) $@.tmp "INPUT = $(VBOX_CORE_DOXYFILE_INPUT)" 423 423 $(APPEND) $@.tmp 424 424 $(APPEND) $@.tmp "PREDEFINED += $(DEFS) $(DEFS.$(KBUILD_TARGET)) $(DEFS.$(KBUILD_TARGET_ARCH)) $(ARCH_BITS_DEFS)" … … 426 426 $(APPEND) $@.tmp 427 427 $(MV) -f $@.tmp $@ 428 @$(APPEND) $(PATH_TARGET)/Doxyfile. dep "DOXYGEN_OUTPUT_PREV = $(DOXYGEN_OUTPUT)"429 @$(APPEND) $(PATH_TARGET)/Doxyfile. dep "DOXYGEN_INPUT_PREV = $(DOXYGEN_INPUT)"428 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_OUTPUT_PREV = $(VBOX_CORE_DOXYFILE_OUTPUT)" 429 @$(APPEND) $(PATH_TARGET)/Doxyfile.Core.dep "DOXYGEN_INPUT_PREV = $(VBOX_CORE_DOXYFILE_INPUT)" 430 430 431 431 # Create the output directory. 432 $(call DIRDEP, $( DOXYGEN_OUTPUT)):432 $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT)): 433 433 $(MKDIR) -p $@ 434 434 435 435 # Do the actual job. 436 $(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile $(DOXYGEN_INPUT) | $(call DIRDEP, $(DOXYGEN_OUTPUT))436 $(PATH_TARGET)/docs.Core: $(PATH_TARGET)/Doxyfile.Core $(VBOX_CORE_DOXYFILE_INPUT) | $(call DIRDEP, $(VBOX_CORE_DOXYFILE_OUTPUT)) 437 437 $(RM) -f $(PATH_TARGET)/docs.Core 438 $(RM) -Rf $( DOXYGEN_OUTPUT)/html/439 doxygen $(PATH_TARGET)/Doxyfile 438 $(RM) -Rf $(VBOX_CORE_DOXYFILE_OUTPUT)/html/ 439 doxygen $(PATH_TARGET)/Doxyfile.Core 440 440 $(APPEND) $(PATH_TARGET)/docs.Core 441 441

