help-make
[Top][All Lists]
Advanced

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

target variable doesn't work in ifeq?


From: cbrown
Subject: target variable doesn't work in ifeq?
Date: Fri, 03 Aug 2007 17:07:58 -0400

if I have this simple makefile, the output of make is "all is not all",

.PHONY: all artifact

all: FLG:=all
all: artifact

artifact:
ifeq ($(strip $(FLG)),all)
        echo $(strip $(FLG)) is all
else
        echo $(strip $(FLG)) is not all
endif


Which is confusing because the variable obviously is set to the expected
value.  Is this a bug, or am I missing some nuance in the manual?

--CB




reply via email to

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