소스 검색

Fix detection of files to format, again

Streetwalrus Einstein 10 년 전
부모
커밋
c0c47687aa
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      rules.mk

+ 1 - 1
rules.mk

@@ -36,7 +36,7 @@ clean:
 
 format:
 	@echo "Formatting source using clang-format"
-	@clang-format -i -style=file $(SRCS_C) $(SRCS_CPP) $(shell find $(INCLUDE) -name *.h)
+	@clang-format -i -style=file $(shell git ls-files -c -o --exclude-standard *.c *.cpp *.h)
 
 include:
 	@echo -n $(addprefix -I ,$(INCLUDE) $(INCLUDE_EXT))