5 SRCDIR:=$(abspath $(dir $(firstword $(MAKEFILE_LIST)))/../..)
6 $(info SRCDIR:$(SRCDIR))
7 include $(SRCDIR)/config_host.mk
9 .PHONY: init_doxygen generate_tag generate_doc
10 .DEFAULT: generate_doc
12 prefered_modules := sw sc sd
13 gbuild_modules := $(prefered_modules) $(filter-out $(prefered_modules),$(patsubst $(SRCDIR)/%/,%,$(dir $(wildcard $(SRCDIR)/*/Module_*.mk))))
14 $(info gbuild_modules:$(gbuild_modules))
16 DOXYGEN_REF_TAGFILES=$(foreach m,$(gbuild_modules), $(BUILDDIR)/docs/$(m)/$(m).tags=./$(m)/html)
17 export DOXYGEN_REF_TAGFILES
19 $(BUILDDIR)/docs/%.tag: init_doxygen
20 @echo "doxygen tag of $(basename $(notdir $@))"
21 @export DOXYGEN_INCLUDE_PATH=`echo $(SOLARINC) | sed -e 's/-I\.//g' -e 's/ -I/ /'g -e 's/ -isystem/ /g' -e 's|/usr/[^ ]*| |g'` ; \
22 $(SRCDIR)/solenv/bin/mkonedoc.sh "$(basename $(notdir $@))" "tag" "$(SRCDIR)" "$(BUILDDIR)/docs"
25 $(BUILDDIR)/docs/%.doc: generate_tag
26 @echo "doxygen doc of $(basename $(notdir $@))"
27 @export DOXYGEN_INCLUDE_PATH=`echo $(SOLARINC) | sed -e 's/-I\.//g' -e 's/ -I/ /'g -e 's/ -isystem/ /g' -e 's|/usr/[^ ]*| |g'` ; \
28 $(SRCDIR)/solenv/bin/mkonedoc.sh "$(basename $(notdir $@))" "doc" "$(SRCDIR)" "$(BUILDDIR)/docs"
35 generate_tag: $(foreach m,$(gbuild_modules), $(BUILDDIR)/docs/$(m).tag)
36 @echo "all tag generated"
38 generate_doc: $(foreach m,$(gbuild_modules), $(BUILDDIR)/docs/$(m).doc)
39 @$(SRCDIR)/solenv/bin/mkdocs_portal.sh "$(SRCDIR)" "$(BUILDDIR)/docs"
44 @rm -fr $(BUILDDIR)/docs
45 @mkdir $(BUILDDIR)/docs