Hi Guys,
I have been using gmake from a long time.
I wanted to know 2 things -
1) How do I know if the compilation is incremental or full ? I mean is
there a way in make to know that the compile is incremental ? Any variable
which is set ? any ENV variable ?
2) How do I know the status of the mak
You can do a run dry, which will print what recipes to run without running
them. From
https://www.gnu.org/software/make/manual/html_node/Instead-of-Execution.html
:
‘-n’
‘--just-print’
‘--dry-run’
‘--recon’
“No-op”. Causes make to print the recipes that are needed to make the
targets up to date, bu
Hi Pablo,
Thanks for your reply.
I actually do not know how many targets will be compiled (we have more than
10k targets in a Makefile). So, is there a straightforward way to know that
only a single code file is changed and it will be an incremental build and
not a full build ?
Regarding return v
On 2022-05-05 06:42, nikhil jain wrote:
> Hi Pablo,
>
> Thanks for your reply.
> I actually do not know how many targets will be compiled (we have more than
> 10k targets in a Makefile). So, is there a straightforward way to know that
> only a single code file is changed and it will be an incremen
Correct, but how do i know its a incremental or full ? any ENV is set which
says it is incremental or full ?
On Thu, May 5, 2022 at 9:38 PM Kaz Kylheku wrote:
> On 2022-05-05 06:42, nikhil jain wrote:
> > Hi Pablo,
> >
> > Thanks for your reply.
> > I actually do not know how many targets will b
On Thu, 2022-05-05 at 21:41 +0530, nikhil jain wrote:
> Correct, but how do i know its a incremental or full ? any ENV is set
> which says it is incremental or full ?
There's no possible way to know.
No make invocation will ever build every target in the makefile in any
real-world makefile (consi
I don't know if this will bounce, because the mail system I'm using changed
from Notes to Outlook since the last time I tried this...
It seems like the questions you're asking are:
1. What was used to make target 'X' of 5 May 2022?
2. How is that different from yesterday's build?
In order to ans
Thanks Paul and Brian.
I understand Now it's not possible to find out if it was an incremental
build or a full build.
What about the second question ?
Before exiting make, I want to display the status of the build if it failed
or passed.. how do I do that ?
Does make store the exit code somewhere
Unless you have specified -k, a non-zero result from executing the build script
will cause make to terminate with a non-zero return code. If you use -k, I
would expect a non-zero return code from make even after the make continues. It
seems to do that in my rather stilted test… I’m not sure of t
Hi Brian,
I am not using -k.
My question is how do I print the exit status in the make itself
before exiting make. May be at the last of main.c (main function) ? but how
? Which variable stores the exit code just before make exits ?
Thanks
Nikhil
On Thu, May 5, 2022 at 11:48 PM Brian Cowan wro
On Fri, 2022-05-06 at 00:14 +0530, nikhil jain wrote:
> My question is how do I print the exit status in the make itself
> before exiting make. May be at the last of main.c (main function) ?
> but how ? Which variable stores the exit code just before make exits
> ?
All exit paths of make go throug
On 2022-05-05 11:07, nikhil jain wrote:
> Thanks Paul and Brian.
> I understand Now it's not possible to find out if it was an incremental
> build or a full build.
>
> What about the second question ?
>
> Before exiting make, I want to display the status of the build if it failed
> or passed.. ho
Thanks Paul, I will utilize the die() function! I already changed make to
be distributed. Thanks to the remote-stub.c (stub). I filled it in with my
logic of distributing the compiles across machines. Working fine since
couple of years! :)
Kaz, Yes you are right.
Unfortunately, as per the require
13 matches
Mail list logo