BASE_DOXYGEN_CMD = ( cat Doxygen.conf $(DOXYGEN_OVERRIDE_PARAMS:%=; echo "%") ) | doxygen -\r
ifeq ($(DOXYGEN_FAIL_ON_WARNING), Y)\r
DOXYGEN_CMD = if ( $(BASE_DOXYGEN_CMD) 2>&1 | grep -v "warning: ignoring unsupported tag" ;); then exit 1; fi;\r
-else\r
+else ifeq ($(DOXYGEN_FAIL_ON_WARNING), N)\r
DOXYGEN_CMD = $(BASE_DOXYGEN_CMD)\r
+else\r
+ $(error DOXYGEN_FAIL_ON_WARNING must be Y or N.)\r
endif\r
\r
doxygen:\r
@echo $(MSG_DOXYGEN_CMD) Configuration file \"$(DOXYGEN_CONF)\" with parameters \"$(DOXYGEN_OVERRIDE_PARAMS)\"\r
$(DOXYGEN_CMD)\r
+\r
+# Phony build targets for this module\r
+.PHONY: doxygen
\ No newline at end of file