mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-29 03:43:23 +08:00
add tab detection in Makefile
This commit is contained in:
parent
c0eb19acb1
commit
2fee6f597d
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -156,10 +156,13 @@ style:
|
|||
--style=google --pad-oper --unpad-paren --pad-header \
|
||||
--align-pointer=name {} \;
|
||||
|
||||
# Detecting weird codepages.
|
||||
# Detecting weird codepages and tabs.
|
||||
checks:
|
||||
find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "Makefile" \) \
|
||||
-exec sh -c "cat {} |recode utf8.. >/dev/null || echo {}" \;
|
||||
find . \( -name "*.[ch]" -or \( -name "*.cpp" -and -not -name "*.moc.cpp" \) -or -name "*.lua" -or -name "*.py" -or -name "*.pl" -or -name "*.md" -or -name "*.txt" -or -name "*.awk" \) \
|
||||
-exec grep -lP '\t' {} \;
|
||||
# to remove tabs within lines, one can try with vi: :set tabstop=4 :set et|retab
|
||||
|
||||
# Dummy target to test for GNU make availability
|
||||
_test:
|
||||
|
|
Loading…
Reference in a new issue