[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Additional environment information with make 4
From: |
David |
Subject: |
Re: Additional environment information with make 4 |
Date: |
Thu, 26 Feb 2015 23:20:56 +1100 |
On 26 February 2015 at 23:06, Markus Fischer <address@hidden> wrote:
>
> I made a minimal example, here is the program I invoke with make along
> with the makefile:
>
> #### makefile ####
> all:
> @g++ -o example main.cpp
>
> run:
> ./example
>
> #### output ####
> $ make && make run
> ./example
> ....
>
> If I run ./example directly from the shell I don't get this "./example"
> entry. I expect the same output when run with make. In this minimal
> example I also get the string "./example" with make 3.82, though. I
> haven't looked into it further, why in my actual program this happens
> only with make 4, but either way it would be interesting to know why it
> is there at all.
Explained here:
https://www.gnu.org/software/make/manual/html_node/Echoing.html#Echoing
Try changing that line in your makefile to:
<tab>@./example