patch 9.1.1675: MS-Windows: Makefiles can be refactored
Problem: MS-Windows: Makefiles can be refactored
Solution: Refactor using a common tools.mak, make some style changes
(RestorerZ).
closes: #18060
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
d5a6310108
commit
e34bdb844f
@ -1,10 +1,17 @@
|
||||
#
|
||||
# Makefile for running indent tests on OS Windows.
|
||||
# Made on the base of a indent/Makefile.
|
||||
# Restorer, 13.03.2024
|
||||
# 2024-03-13, Restorer
|
||||
#
|
||||
|
||||
# included common tools
|
||||
!INCLUDE ..\..\src\auto\nmake\tools.mak
|
||||
|
||||
LSFLAGS = /A:-D /B /O:N /L /S
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
VIMPROG = vim.exe
|
||||
VIMPROG = ..\..\src\vim.exe
|
||||
VIMRUNTIME = ..
|
||||
|
||||
# Run the tests that didn't run yet or failed previously.
|
||||
@ -12,10 +19,22 @@ VIMRUNTIME = ..
|
||||
# If a test fails a testdir\*.fail file will be written.
|
||||
test :
|
||||
@ set "VIMRUNTIME=$(VIMRUNTIME)"
|
||||
$(VIMPROG) --clean --not-a-term -u testdir\runtest.vim
|
||||
|
||||
@ $(VIMPROG) --clean --not-a-term -u testdir\runtest.vim && \
|
||||
(echo:&echo: INDENT TESTS: DONE &echo:) || \
|
||||
<<echofail.bat
|
||||
set "retval=%ERRORLEVEL%"
|
||||
@echo off
|
||||
echo:&echo: INDENT TESTS: FAILED
|
||||
for /F %%G in ('2^> nul $(LS) $(LSFLAGS) testdir\*.fail') do (
|
||||
call set "fail=%%fail%% %%G")
|
||||
if defined fail (
|
||||
for %%G in (%fail%) do @(echo:&echo: %%~nxG:&echo: && type %%G)
|
||||
)
|
||||
exit /B %retval%
|
||||
<<
|
||||
|
||||
clean testclean :
|
||||
@ if exist testdir\*.fail del /q testdir\*.fail
|
||||
@ if exist testdir\*.out del /q testdir\*.out
|
||||
@ if exist testdir\*.fail $(RM) testdir\*.fail
|
||||
@ if exist testdir\*.out $(RM) testdir\*.out
|
||||
|
||||
# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=79 ft=make:
|
||||
|
||||
Reference in New Issue
Block a user