From 622eb2999664fcd8897eac402d024267bcc80251 Mon Sep 17 00:00:00 2001 From: Jason Petersen Date: Tue, 16 Feb 2016 11:34:01 -0700 Subject: [PATCH] Add make targets for applying and checking style Need to change to the project's top srcdir, as citus_indent expects to be able to find styled files using git ls-files, and VPATH builds would otherwise not return any results. --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index e024ef4ff..7131e2ead 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,13 @@ clean-csql: install: install-csql clean: clean-csql +# apply or check style +reindent: + cd ${citusdb_abs_top_srcdir} && citus_indent --quiet +check-style: + cd ${citusdb_abs_top_srcdir} && citus_indent --quiet --check +.PHONY: reindent check-style + # depend on install for now check: all install $(MAKE) -C src/test/regress check-full