help-make
[Top][All Lists]
Advanced

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

RE: GMAKE signal handling


From: Bhatt, Milan C
Subject: RE: GMAKE signal handling
Date: Thu, 13 Jun 2002 14:13:28 -0700

Thanks Paul.

Do you think it would be possible to make each signal name a special target
for a future release of gmake?

For example, I believe Ctrl-C is "SIGINT".  So you could have:

.SIGINT : 
        @ echo "Interrupt signal received"
        @ <commands to clean up launched sub jobs>
        @ echo "exiting"

I'm not sure how feasible this would be within some future make, but I think
it would make a good feature.

Milan

-----Original Message-----
From: Paul D. Smith [mailto:address@hidden
Sent: Thursday, June 13, 2002 12:43 PM
To: Bhatt, Milan C
Cc: 'address@hidden'
Subject: Re: GMAKE signal handling


%% "Bhatt, Milan C" <address@hidden> writes:

  bmc> I know this may be a long shot, but has anyone found some way for
  bmc> GMAKE to handle signals?  Specifically, I would like to capture
  bmc> the Ctrl-C interrupt signal and have GMAKE execute some commands
  bmc> before exiting.

It's simple enough to do from within the code, but there's no way to do
it from within a makefile.

-- 
----------------------------------------------------------------------------
---
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist



reply via email to

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