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:
11
doc/Makefile
11
doc/Makefile
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user