when running on cmd.exe only print a message, the style tests

require bash
This commit is contained in:
mrdudz 2022-11-05 16:42:01 +01:00
parent 53b62184e8
commit 699ba1fbd6
1 changed files with 15 additions and 0 deletions

View File

@ -1,4 +1,17 @@
ifneq ($(shell echo),)
CMD_EXE = 1
endif
ifdef CMD_EXE
.PHONY: checkstyle
checkstyle:
$(info INFO: style checks require bash.)
else
.PHONY: checkstyle lineendings tabs lastline spaces noexec
checkstyle: lineendings tabs lastline spaces noexec
@ -17,3 +30,5 @@ spaces: spaces.sh
noexec: noexec.sh
@./noexec.sh
endif