From cdf7657b197f445e02e29c0c345f770585280b4b Mon Sep 17 00:00:00 2001 From: Nishi Date: Tue, 22 Sep 2026 11:06:13 +0900 Subject: [PATCH] ok --- NTMakefile | 2 +- configure | 2 +- tools/genmk.pl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NTMakefile b/NTMakefile index 6712a8b..a0bc3d7 100644 --- a/NTMakefile +++ b/NTMakefile @@ -2,7 +2,7 @@ CC = cl /TC /c /nologo LD = link /nologo !if [where /R "%DXSDK_DIR%\\Include" d3d9.h >nul 2>nul] -!if [for /f "delims=" %P in ('where /R "%DXSDK_DIR%\\Include" d3d9.h 2^>nul') do @echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%~dpP">d3d9flags.mk] +!if [echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%DXSDK_DIR%\\Include">d3d9flags.mk] !endif !else !if [echo DX9_FLAGS =>d3d9flags.mk] diff --git a/configure b/configure index 025b265..f84b1ea 100755 --- a/configure +++ b/configure @@ -246,7 +246,7 @@ print(OUT " clang-format --verbose -i `find tools src include examples \"(\" -name \"*.c\" -or -name \"*.cc\" -or -name \"*.h\" -or -name \"*.m\" \")\" -and -not -name \"*ttf.c\"`\n" ); print(OUT -" perltidy -b -bext=\"/\" --paren-tightness=2 `find tools pl configure -name \"*.pl\"`\n" +" perltidy -b -bext=\"/\" --paren-tightness=2 `find tools pl -name \"*.pl\"` configure\n" ); print(OUT "\n"); print(OUT "lib:"); diff --git a/tools/genmk.pl b/tools/genmk.pl index ba5d40d..b7993e3 100755 --- a/tools/genmk.pl +++ b/tools/genmk.pl @@ -45,7 +45,7 @@ sub cobjs { sub d3d9_detect_block { return <<'EOF'; !if [where /R "%DXSDK_DIR%\\Include" d3d9.h >nul 2>nul] -!if [for /f "delims=" %P in ('where /R "%DXSDK_DIR%\\Include" d3d9.h 2^>nul') do @echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%~dpP">d3d9flags.mk] +!if [echo DX9_FLAGS = /DMW_DIRECT3D9 /I"%DXSDK_DIR%\\Include">d3d9flags.mk] !endif !else !if [echo DX9_FLAGS =>d3d9flags.mk]