Преглед на файлове

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))