From d4d64969ca117438e487dffc309aea8654996313 Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Tue, 14 May 2024 15:48:21 +0200 Subject: [PATCH] Default make to build dox conditional on doxygen being available. --- config.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.mk b/config.mk index e556d69a..47dfd56e 100644 --- a/config.mk +++ b/config.mk @@ -5,6 +5,16 @@ # You can include this snipplet in your Makefile also. # ============================================================================ +# The targets to build by default if not otherwise specified to 'make' +DEFAULT_TARGETS := static shared cio_ra.bin + +# Check if there is a doxygen we can run +DOXYGEN := $(shell which doxygen) + +# If there is doxygen, build the API documentation also by default +ifeq ($(.SHELLSTATUS),0) + DEFAULT_TARGETS += dox +endif # Folders in which sources and headers are located, respectively SRC = src