help-gnu-utils
[Top][All Lists]
Advanced

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

ifeq in gmake


From: atteson
Subject: ifeq in gmake
Date: 2 Apr 2006 14:00:50 -0700
User-agent: G2/0.2

Can someone explain why gmake outputs "goodbye" rather than "hello"
with the following test makefile:

%.a : b
ifeq ($@,"a.a")
    echo "hello"
else
    echo "goodbye"
endif

I named the makefile "test" and I run it with "make -f test a.a".  I
created a file called "b" but there is no file called "a.a".



reply via email to

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