summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2016-03-03 09:44:12 +0100
committerNils Maier <maierman@web.de>2016-03-03 09:44:12 +0100
commite6e3cd2e325d24137eb3bc328768d2f4377e89af (patch)
tree6feca5b6c2c074a2d42b3166f9a63caaf7f6af9a
parentfc490ac05cc575113bfcdd154af5b01e9398999a (diff)
Allow to run clang-format with external build dir
-rw-r--r--Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index bdd7d513..0804f14c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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}