summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2024-04-21 04:11:53 +1000
committer Vas Crabb <vas@vastheman.com>2024-04-21 04:11:53 +1000
commit01b97e2222c31223996efdf4e7b042410e985957 (patch)
tree3808bc50b56e5f7350a0ce7520f6ca9a822d32b0 /makefile
parent943ae3135b8ab2088fc2ccb07896ceffb5f71e02 (diff)
srcclean and cleanup:
* makefile: srcclean batches of twenty files - improves performance when process creation or filesystem walk is expensive. * midway/midtunit.cpp: Removed a few unnecessary lines.
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/makefile b/makefile
index 3a886bbf6bb..f50500fbc5d 100644
--- a/makefile
+++ b/makefile
@@ -1638,11 +1638,11 @@ ifeq (posix,$(SHELLTYPE))
-name \*.mm -o \
-name \*.lay -o \
-name \*.lst \
- \) -exec ./srcclean {} \; >&2
- $(SILENT) find hash \( -name \*.hsi -o -name \*.xml \) -exec ./srcclean {} \; >&2
- $(SILENT) find bgfx \( -name \*.json \) -exec ./srcclean {} \; >&2
- $(SILENT) find plugins \( -name \*.lua -o -name \*.json \) -exec ./srcclean {} \; >&2
- $(SILENT) find scripts \( -name \*.lua \) -exec ./srcclean {} \; >&2
+ \) -print0 | xargs -0 -n 20 ./srcclean >&2
+ $(SILENT) find hash \( -name \*.hsi -o -name \*.xml \) -print0 | xargs -0 -n 20 ./srcclean >&2
+ $(SILENT) find bgfx \( -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
+ $(SILENT) find plugins \( -name \*.lua -o -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
+ $(SILENT) find scripts \( -name \*.lua \) -print0 | xargs -0 -n 20 ./srcclean >&2
else
$(shell for /r src %%i in (*.c, *.cpp, *.h, *.hpp, *.hxx, *.ipp, *.mm, *.lay, *.lst) do srcclean %%i >&2 )
$(shell for /r hash %%i in (*.hsi, *.xml) do srcclean %%i >&2 )