Add `make lint` target
Add a `make lint` target which maps to a cppcheck target. As with the shellcheck target it will only run when cppcheck is installed. This allows a `make lint` build check to be incrementally added to the automated testing for distribution which provide cppcheck. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4915
This commit is contained in:
parent
4eb0db42d3
commit
b64e02e580
|
@ -55,6 +55,13 @@ shellcheck:
|
||||||
done; \
|
done; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
lint: cppcheck
|
||||||
|
|
||||||
|
cppcheck:
|
||||||
|
@if type cppcheck > /dev/null 2>&1; then \
|
||||||
|
cppcheck --quiet --force ${top_srcdir}; \
|
||||||
|
fi
|
||||||
|
|
||||||
ctags:
|
ctags:
|
||||||
$(RM) tags
|
$(RM) tags
|
||||||
find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
|
find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
|
||||||
|
|
Loading…
Reference in New Issue