Skip to content

Commit f1d6fe4

Browse files
committed
Makefile: limit scope of format/format-check
We don't want `.git` or `target/` or other misc dirs to be subject to these phony targets.
1 parent 6d69958 commit f1d6fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ clean:
6262
rm -rf target
6363

6464
format:
65-
find . \
65+
find src tests \
6666
-name '*.[c|h]' \
6767
! -path "./target/*" \
6868
! -wholename './src/rustls.h' | \
6969
xargs clang-format -i
7070

7171
format-check:
72-
find . \
72+
find src tests \
7373
-name '*.[c|h]' \
7474
! -path "./target/*" \
7575
! -wholename './src/rustls.h' | \

0 commit comments

Comments
 (0)