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.
pull/327/head
Jason Petersen 2016-02-16 11:34:01 -07:00
parent 20c68fe251
commit 622eb29996
No known key found for this signature in database
GPG Key ID: 9F1D3510D110ABA9
1 changed files with 7 additions and 0 deletions

View File

@ -42,6 +42,13 @@ clean-csql:
install: install-csql install: install-csql
clean: clean-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 # depend on install for now
check: all install check: all install
$(MAKE) -C src/test/regress check-full $(MAKE) -C src/test/regress check-full