forked from Mirrors/wasm3
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
264 B
Makefile
10 lines
264 B
Makefile
5 years ago
|
.PHONY: format
|
||
|
|
||
|
all:
|
||
|
|
||
|
format:
|
||
|
# Convert tabs to spaces
|
||
|
find ./source -type f -iname '*.[cpp\|c\|h]' -exec bash -c 'expand -t 4 "$$0" | sponge "$$0"' {} \;
|
||
|
# Remove trailing whitespaces
|
||
|
find ./source -type f -iname '*.[cpp\|c\|h]' -exec sed -i 's/ *$$//' {} \;
|