diff options
| author | 2021-09-26 14:15:42 +1000 | |
|---|---|---|
| committer | 2021-09-26 14:15:42 +1000 | |
| commit | b225f4db4a42978ec6d3384716d340cc204c3a56 (patch) | |
| tree | 925c3a934e542eef41cff9ec3d9a2cd6634a176b /makefile | |
| parent | 3066057077c9a1e500f885cc0b1c6bd5dd523b6d (diff) | |
srcclean in preparation for MAME 0.235, and two small adjustments.
* Reduce repeated directory walking in cleansrc target (substantially
improves speed of building the target on Windows).
* Disable a validity check using an MSVC language extension when using
clang in MSVC ABI mode.
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 49 |
1 files changed, 17 insertions, 32 deletions
@@ -1803,39 +1803,24 @@ tests: $(REGTESTS) cleansrc: @echo Cleaning up tabs/spaces/end of lines.... ifeq (posix,$(SHELLTYPE)) - $(SILENT) find src -name \*.c -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.cpp -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.h -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.hpp -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.hxx -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.ipp -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.lay -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.lst -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.mak -exec ./srcclean {} \; >&2 - $(SILENT) find src -name \*.mm -exec ./srcclean {} \; >&2 - $(SILENT) find hash -name \*.hsi -exec ./srcclean {} \; >&2 - $(SILENT) find hash -name \*.xml -exec ./srcclean {} \; >&2 - $(SILENT) find bgfx -name \*.json -exec ./srcclean {} \; >&2 - $(SILENT) find plugins -name \*.lua -exec ./srcclean {} \; >&2 - $(SILENT) find plugins -name \*.json -exec ./srcclean {} \; >&2 - $(SILENT) find scripts -name \*.lua -exec ./srcclean {} \; >&2 + $(SILENT) find src \ + -name \*.c -o -name \*.cpp -o \ + -name \*.h -o -name \*.hpp -o -name \*.hxx -o \ + -name \*.ipp -o \ + -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 else - $(shell for /r src %%i in (*.c) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.cpp) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.h) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.hpp) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.hxx) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.ipp) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.lay) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.lst) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.mak) do srcclean %%i >&2 ) - $(shell for /r src %%i in (*.mm) do srcclean %%i >&2 ) - $(shell for /r hash %%i in (*.hsi) do srcclean %%i >&2 ) - $(shell for /r hash %%i in (*.xml) do srcclean %%i >&2 ) - $(shell for /r bgfx %%i in (*.json) do srcclean %%i >&2 ) - $(shell for /r plugins %%i in (*.lua) do srcclean %%i >&2 ) - $(shell for /r plugins %%i in (*.json) do srcclean %%i >&2 ) - $(shell for /r scripts %%i in (*.lua) do srcclean %%i >&2 ) + $(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 ) + $(shell for /r bgfx %%i in (*.json) do srcclean %%i >&2 ) + $(shell for /r plugins %%i in (*.lua, *.json) do srcclean %%i >&2 ) + $(shell for /r scripts %%i in (*.lua) do srcclean %%i >&2 ) endif #------------------------------------------------- |
