doc: properly define ARM_ARCH_xxx

Requires a little stub file per target, so we can neatly define the
architecture.  This properly includes all the cortex m core
documentation finally.
This commit is contained in:
Karl Palsson
2019-06-10 10:33:34 +00:00
parent d88d6fde12
commit 9e42251d6f
37 changed files with 46 additions and 3 deletions

View File

@@ -26,6 +26,7 @@ DoxygenLayout.xml: templates/DoxygenLayout_Root.xml
define gen_DOC_TARGET
DOC_TARGETS += doc_$(1)
CLEAN_TARGETS += clean_$(1)
$(1)/:
@mkdir -p $$@
@@ -41,6 +42,10 @@ $(1)/DoxygenLayout_$(1).xml: templates/DoxygenLayout_Device.xml | $(1)/
doc_$(1): $(1)/doxy.sourcelist $(1)/Doxyfile $(1)/DoxygenLayout_$(1).xml
@(cd $(1); doxygen)
clean_$(1):
@$(RM) -rf $(1)/doxy.sourcelist $(1)/Doxyfile $(1)/DoxygenLayout_$1.xml $(1)/doxygen_$(1).log $(1)/html $(1)/$(1).tag
endef
$(foreach TARGET_SRC_DIR, $(TARGETS), $(eval $(call gen_DOC_TARGET,$(subst /,,$(TARGET_SRC_DIR)))))
@@ -48,8 +53,8 @@ $(foreach TARGET_SRC_DIR, $(TARGETS), $(eval $(call gen_DOC_TARGET,$(subst /,,$(
html: $(DOC_TARGETS) DoxygenLayout.xml
doxygen
clean:
@rm -rf html/ $(TARGETS_DIRS) DoxygenLayout.xml doxygen.log
clean: $(CLEAN_TARGETS)
@rm -rf html/ DoxygenLayout.xml doxygen.log
.PHONY: doc html $(DOC_TARGETS)
.PHONY: doc html $(DOC_TARGETS) $(CLEAN_TARGETS)