Hi All,
I have a simple makefile as below. Even though the $(STATUS) value is 1 the ifeq doesnot gothrough this condition. I am using Gmake 3.80
on linux.
btc6l001$ gmake -f bg.mk
1
PASS
1 --BG
all:
$(eval STATUS := $(shell ls blahblah> nul 2>&1 ;echo $$?))
@echo $(STATUS)
ifeq ($(strip $(STATUS)),1)
@echo "FAIL"
@echo "$(STATUS) --BG1"
else
@echo "PASS"
@echo "$(STATUS) --BG"
endif
Thanks & Regards,
Bhaskar G
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
