소스 검색

Allow to run clang-format with external build dir

Nils Maier 9 년 전
부모
커밋
e6e3cd2e32
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Makefile.am

+ 2 - 2
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}