Skip to content

Commit

Permalink
Allow to run clang-format with external build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaier committed Mar 3, 2016
1 parent fc490ac commit e6e3cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.am
Expand Up @@ -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}

0 comments on commit e6e3cd2

Please sign in to comment.