From 6fa09e6a70d4116e22df36d33e2f7533cbcbe098 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Fri, 1 Apr 2016 16:28:36 -0700 Subject: add make targets to lint the code Fixes #2818 --- Makefile.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 59eb1340..98b8a11c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -865,6 +865,13 @@ iwyu: _iwyu: clean $(PROGRAMS) .PHONY: iwyu _iwyu +# Lint the code. +lint: + build_tools/lint.fish $(CXX) $(CXXFLAGS) +lint-all: + build_tools/lint.fish $(CXX) --all $(CXXFLAGS) +.PHONY: lint lint-all + # # Cleanup targets # @@ -891,6 +898,7 @@ clean: rm -f command_list.txt command_list_toc.txt toc.txt rm -f doc_src/index.hdr doc_src/commands.hdr rm -f lexicon_filter lexicon.txt lexicon.log + rm -f compile_commands.json xcodebuild.log rm -f FISH-BUILD-VERSION-FILE fish.pc if test "$(HAVE_DOXYGEN)" = 1; then \ rm -rf doc user_doc share/man; \ -- cgit v1.2.3