diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-04-01 16:28:36 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-04-01 16:29:06 -0700 |
commit | 6fa09e6a70d4116e22df36d33e2f7533cbcbe098 (patch) | |
tree | c98697f5573bd0c7e9968315ca19625f86b143fe /Makefile.in | |
parent | 4f5d42858c558af73575b1f38e6ad0bc58912b46 (diff) |
add make targets to lint the code
Fixes #2818
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 8 |
1 files changed, 8 insertions, 0 deletions
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; \ |