Add more context for onos builds
Change-Id: I541d09529471059bab4fad323e16f1505ef57f54
diff --git a/makefiles/lint/doc8/include.mk b/makefiles/lint/doc8/include.mk
index 5e8abd7..d0263af 100644
--- a/makefiles/lint/doc8/include.mk
+++ b/makefiles/lint/doc8/include.mk
@@ -37,7 +37,11 @@
## -----------------------------------------------------------------------
## -----------------------------------------------------------------------
include $(MAKEDIR)/lint/doc8/excl.mk
-lint-doc8-excl := $(addprefix --ignore-path$(space),$(lint-doc8-excl-raw))
+
+ifdef lint-doc8-excl
+ lint-doc8-excl-args += $(addprefix --ignore-path$(space),$(lint-doc8-excl))
+endif
+lint-doc8-excl-args += $(addprefix --ignore-path$(space),$(lint-doc8-excl-raw))
lint-doc8-args += --max-line-length 120
@@ -48,7 +52,7 @@
@echo '** -----------------------------------------------------------------------'
$(activate) && doc8 --version
@echo
- $(activate) && doc8 $(lint-doc8-excl) $(lint-doc8-args) .
+ $(activate) && doc8 $(lint-doc8-excl-args) $(lint-doc8-args) .
## -----------------------------------------------------------------------
## Intent: Display command usage