aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile.in
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-04-01 20:48:11 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-04-04 21:00:43 -0700
commitfd1b7ba52901179c19f5997b650518993d919f52 (patch)
tree1600b09c7376ce259178a038587d5d1249dd1061 /Makefile.in
parenta4642f141f7781792909cff385ff2316530416ee (diff)
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
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 9 insertions, 1 deletions
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
#