Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Craig Neth USG <neth@zk3.dec.com>
Subject: Re: DU 4.0B make/ld doesn't delete target
Date: 1997/10/13	[thread overview]
Message-ID: <344266D3.15FB@zk3.dec.com> (raw)
In-Reply-To: 343A6D93.B8274E3A@alumni.cse.ucsc.edu


Dylan Salisbury wrote:> 
> After a link error during a make, I end up with the partially linked
> executable remaining!  It's my understanding that make should always
> delete a failed target unless the .PRECIOUS special target is specified,
> correct?
> 
> Are there any flags or commands I can use to get around this problem
> without switching development tools?  If not, I'd love recommendations
> for the next-least-painful solution (which I imagine is to go GNU?)

I've never heard of a make rule that it delete a failed target but
I'm no expert on make.

What I _have_ seen is lots of makefiles that look like this:

foo: $(foo_OBJS)
     cc -o $@.X $(foo_OBJS)
     mv $@.X $@

I.e. they link into a temporary target and then move it to real target.
If the link fails, the 'mv' won't be executed.


-- 
-------------------------------------------------------------------------------
Craig Neth                         ! neth@zk3.dec.com
DIGITAL Equipment Corporation      ! 
110 Spit Brook Road ZKO2-3/W17     !
Nashua, NH 03062                   ! Opinions expressed herein are my own.
===============================================================================



      reply	other threads:[~1997-10-13  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-07  4:00 DU 4.0B make/ld doesn't delete target Dylan Salisbury
1997-10-13  4:00 ` Craig Neth USG [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox