From fd1b7ba52901179c19f5997b650518993d919f52 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Fri, 1 Apr 2016 20:48:11 -0700 Subject: support making fish code match the style guide This changes implements two new make targets: `style` and `style-all`. These make it easy to ensure that a change conforms to the project style guides for C++ and fish code. Fixes #571 --- Makefile.in | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile.in') diff --git a/Makefile.in b/Makefile.in index 5526fa6d..b176c5f6 100644 --- a/Makefile.in +++ b/Makefile.in @@ -872,13 +872,21 @@ iwyu: _iwyu: clean $(PROGRAMS) .PHONY: iwyu _iwyu -# Lint the code. +# Lint the code. This only deals with C++ files. lint: build_tools/lint.fish $(CXX) $(CXXFLAGS) lint-all: build_tools/lint.fish $(CXX) --all $(CXXFLAGS) .PHONY: lint lint-all +# Run the code through the style refomatter. This handles both C++ files and +# fish scripts (*.fish). +style: + build_tools/style.fish +style-all: + build_tools/style.fish --all +.PHONY: lint lint-all + # # Cleanup targets # -- cgit v1.2.3