help-make
[Top][All Lists]
Advanced

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

Re: how to have dependencies based on target?


From: Chad Loder
Subject: Re: how to have dependencies based on target?
Date: Mon, 03 Dec 2001 19:26:16 -0800

At Monday 12/3/2001 05:09 PM -1000, you wrote:
Thanks, Paul.  Here's what I wound up doing, and it seems to work.
Sort of the same idea as you had.  A bit kludgy, and not very robust
if make is aborted, leaving a .ja file lying around.  On the other
hand, don't have dependency files to deal with.

You should be able to use the .INTERMEDIATE magic target to
cause gmake to remove the .ja file. See the section of the
GNU make manual titled "Chains of Implicit Rules":

http://www.gnu.org/manual/make/html_node/make_98.html#SEC97


[Please let me know if anyone has comments.  I appreciated the feedback
last week, and wanted to let you-all know what I came up with.]

Seems like there must be a better way to do this. My problem
is that you're invoking the jar executable once for each
file. Could you use xargs to manage this for you (with
fewer invocations of jar), instead of using a for loop?

        c





reply via email to

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