GNUmakefile: fix the detection for a working tcc executable, broken in 869677a

This commit is contained in:
Delyan Angelov 2025-03-06 11:36:11 +02:00
parent 97891517e2
commit 0eb41e5e5a
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED

View file

@ -136,7 +136,7 @@ latest_vc:
endif endif
check_for_working_tcc: check_for_working_tcc:
@$(TMPTCC)/tcc$(EXE_EXT) --version > /dev/null 2> /dev/null || echo "The executable '$(TMPTCC)/tcc$(EXE_EXT)' does not work." @$(TMPTCC)/tcc.exe --version > /dev/null 2> /dev/null || echo "The executable '$(TMPTCC)/tcc.exe' does not work."
fresh_vc: fresh_vc:
rm -rf $(VC) rm -rf $(VC)
@ -145,7 +145,7 @@ fresh_vc:
ifndef local ifndef local
latest_tcc: $(TMPTCC)/.git/config latest_tcc: $(TMPTCC)/.git/config
cd $(TMPTCC) && $(GITCLEANPULL) cd $(TMPTCC) && $(GITCLEANPULL)
ifneq (,$(wildcard ./tcc$(EXE_EXT))) ifneq (,$(wildcard ./tcc.exe))
@$(MAKE) --quiet check_for_working_tcc 2> /dev/null @$(MAKE) --quiet check_for_working_tcc 2> /dev/null
endif endif