help-make
[Top][All Lists]
Advanced

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

Re: GNU Make enhansment patch - batching compiles


From: Eli Zaretskii
Subject: Re: GNU Make enhansment patch - batching compiles
Date: Thu, 03 May 2001 21:15:09 +0300

> Date: Thu, 3 May 2001 12:44:15 -0400
> From: "Paul D. Smith" <address@hidden>
> 
> %% Eli Zaretskii <address@hidden> writes:
> 
>   ez> I thought about this, but with a twist: the "%.class : %.java" rules 
> add 
>   ez> file names to a file which will eventually look like this:
> 
>   ez>    FILES_TO_COMPILE = \
>   ez>    foo.java \
>   ez>    bar.java \
>   ez>    baz.java \
> 
>   ez> and then in the Makefile you say
> 
>   ez> include files_list
> 
>   ez> all:
>   ez>         compile -c $(FILES_TO_COMPILE)
> 
>   ez> Doesn't this do what is needed?
> 
> You left out one crucial rule: how is files_list built?

I thought about doing that from the rule which is normally used to
compile .java into .class.  Something like this:

   %.class : %.java
        echo '$< \\' >> files_list



reply via email to

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