Thanks, I will try that. I have one more question.
I see that if I do a ctrl c then fatal_error_signal function is called.
Now the problem is if I am trapping ctrl c in makefile then
fatal_error_signal is not called...
Is this expected?
I want to trap the signal in makefile to print the status.
On Mon, 2019-10-21 at 07:51 +0200, David Deutsch wrote:
> On 10/21/19 7:29 AM, Paul Smith wrote:
> > I can only assume that the rules in question are pattern rules. If
> > they were explicit rules then make would indeed give you a more clear
> > declaration of which file is missing.
>
> Actually,
On Mon, 2019-10-21 at 13:00 +0530, nikhil jain wrote:
> I see that if I do a ctrl c then fatal_error_signal function is
> called.
>
> Now the problem is if I am trapping ctrl c in makefile then
> fatal_error_signal is not called...
I don't know what you mean.
It's not possible to "trap CTRL-C in
Hi Paul,
Sorry, that was part of my earlier email - I understand that this is not
possible currently. The question was - if I wanted to implement the behavior in
make itself, would I have to basically write my own make? I know that Guile is
a choice for extending make with custom code, but it s
I handle SIGINT (ctrl+c) like this in the makefile -
trap 'USER_INT=1; /bin/echo "terminating, please wait"' INT;
This traps SIGINT.
Thanks
Nikhil
On Mon, Oct 21, 2019 at 6:09 PM Paul Smith wrote:
> On Mon, 2019-10-21 at 13:00 +0530, nikhil jain wrote:
> > I see that if I do a ctrl c then
On Mon, 2019-10-21 at 21:26 +0530, nikhil jain wrote:
> I handle SIGINT (ctrl+c) like this in the makefile -
>
> trap 'USER_INT=1; /bin/echo "terminating, please wait"' INT;
That is not valid makefile syntax. If you put that directly into a
makefile, by itself, you'll get a syntax error:
sorry to not be clear -
see this how it works in makefile. It is part of the target -
bash-4.1$ cat Makefile
a1:
trap 'USER_INT=1; /bin/echo "terminating, please wait"' INT; \
sleep 100
bash-4.1$ make
trap 'USER_INT=1; /bin/echo "terminating, please wait"' INT; \
s
On Mon, 2019-10-21 at 22:47 +0530, nikhil jain wrote:
> see this how it works in makefile. It is part of the target -
>
> bash-4.1$ cat Makefile
> a1:
> trap 'USER_INT=1; /bin/echo "terminating, please wait"' INT; \
> sleep 100
>
> bash-4.1$ make
> trap 'USER_INT=1; /bin/echo