help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question on ifeq ()


From: Bhaskar G
Subject: Question on ifeq ()
Date: Mon, 29 Aug 2005 17:29:44 +0530


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]