Q=
endif
+#
+# If you want HTML output of the scanner to be rendered to the terminal:
+#
+# $ ANALYZE_C_DUMP=1 make ... args ...
+#
+ifeq "${ANALYZE_C_DUMP}" ""
+ ANALYZE_C_DUMP=false
+else
+ ANALYZE_C_DUMP=true
+endif
+
# ADD_CLEAN_RULE - Parameterized "function" that adds a new rule and phony
# target for cleaning the specified target (removing its build-generated
# files).
$(Q)$(ECHO) SCAN $<
$(Q)$(strip ${ANALYZE.c} --analyze -Xanalyzer -analyzer-output=html -c $< -o $@ ${CPPFLAGS} \
${CFLAGS} ${SRC_CFLAGS} ${INCDIRS} $(addprefix -I,${SRC_INCDIRS}) ${SRC_DEFS} ${DEFS}) || (rm -f $@ && false)
+ $(Q)$(ANALYZE_C_DUMP) && which lynx > /dev/null && test -d $@ && lynx -width=200 -dump $@/*.html
$(Q)touch $@
endef
if [ "${COVERITY_SCAN_BRANCH}" != 1 -a "${CC}" = 'clang' ]; then
echo "Starting clang scan"
# Travis only has two cores
- make -j2 scan && [ "$(find build/plist/ -name *.html)" = '' ];
+ ANALYZE_C_DUMP=1 make -j2 scan && [ "$(find build/plist/ -name *.html)" = '' ];
fi
#