I use makefile in windows (make version: GNU Make 4.2.1 Built for i686-pc-msys), I try to suppress the printouts of the command, some are suppressed and some return an error.
if I do
VERBOSE := 0
ifeq ($(VERBOSE), 0)
export HIDE := @
else
export HIDE :=
endif
$(TARGET_RTOS_LIB) : $(RTOS_SW_BLOCK) $(MAKEFILE)
$(HIDE)cd $(GNSS_OUT_PATH)
It works. But if when I do:
ARM_TOOL_PATH := $(ROOT_DIR)build/10_2021.10/bin
$(TARGET_PKG): MakeDirs $(MAKEFILE)
AR = $(HIDE)$(ARM_TOOL_PATH)/arm-none-eabi-ar.exe
$(AR) $(ARFLAGS) $@ $(notdir $(OBJS))
I get the following error:
/bin/sh: @/c/Work/GitProjects/GNSS_1350/build/10_2021.10/bin/arm-none-eabi-ar.exe: No such file or directory
What am I missing? I tried writting the full path without using ARM_TOOL_PATH, I also tried adding the tool path to Windows path and only use @arm-none-eabi-ar.exe but I get the same result
Thank you for your help