Skip to content

Commit

Permalink
buildsystem: export doc type to doxygen makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
crasbe committed Mar 7, 2025
1 parent 108bc81 commit ffd7410
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ all: welcome
@echo ""
@exit 1

# Extract the documentation type that is to be generated and export it for
# the doxygen Makefile
ifneq ($(findstring doc-,$(MAKECMDGOALS)),)
DOCUMENTATION_FORMAT := $(patsubst doc-%,%,$(filter doc-%, $(MAKECMDGOALS)))
export DOCUMENTATION_FORMAT
endif

doc:
@./dist/tools/features_yaml2mx/features_yaml2mx.py \
features.yaml \
--output-md doc/doxygen/src/feature_list.md
"$(MAKE)" -BC doc/doxygen

doc-man:
"$(MAKE)" -BC doc/doxygen man

doc-latex:
"$(MAKE)" -BC doc/doxygen latex
doc-man doc-latex:
"$(MAKE)" -BC doc/doxygen

docclean:
"$(MAKE)" -BC doc/doxygen clean
Expand Down

0 comments on commit ffd7410

Please sign in to comment.