Allow to run clang-format with external build dir

pull/586/head
Nils Maier 2016-03-03 09:44:12 +01:00
parent fc490ac05c
commit e6e3cd2e32
1 changed files with 2 additions and 2 deletions

View File

@ -35,5 +35,5 @@ dist_noinst_DATA = LICENSE.OpenSSL
clang-format:
CLANGFORMAT=`git config --get clangformat.binary`; \
test -z $${CLANGFORMAT} && CLANGFORMAT="clang-format"; \
$${CLANGFORMAT} -i src/*.{c,cc,h} src/includes/aria2/*.h \
examples/*.cc test/*.{cc,h}
$${CLANGFORMAT} -i $(top_srcdir)/src/*.{c,cc,h} $(top_srcdir)/src/includes/aria2/*.h \
$(top_srcdir)/examples/*.cc $(top_srcdir)/test/*.{cc,h}