René Nyffenegger
René Nyffenegger

Reputation: 40543

Why does make not print the message of $(info ...)?

I have this simple Makefile:

$(info i)
$(warning w)

all:
    echo xyz

When I run it, it prints

Makefile:2: w
echo xyz
xyz

I have expected the $(info i) instruction to print i. What do I have to change so that the i is also printed?

Upvotes: 1

Views: 140

Answers (1)

MadScientist
MadScientist

Reputation: 100946

You should always specify the version of the software you're using.

The $(warning ...) function was added to GNU make 3.78 (released in 1999). The $(info ...) function was added to GNU make 3.81 (released in 2006).

Perhaps your version of GNU make is between those two releases.

Upvotes: 1

Related Questions