> Date: Thu, 3 May 2001 12:44:15 -0400
> From: "Paul D. Smith" <[EMAIL PROTECTED]>
> 
> %% Eli Zaretskii <[EMAIL PROTECTED]> 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

_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to