Warner wrote:
> In message <[EMAIL PROTECTED]> Jason Brazile writes:
> :   I want to construct a portable Makefile to build a java application.
> 
> That's not possible.  Java specifies a half assed make system as part
> of the language, so it is nearly impossible to use another make system
> on top of it unless you are willing to live with a whole slew of
> problems.

Until someone started using inner classes, my Makefiles were being
fairly successful at "living with a whole slew of problems". :-) 

> d=$$
> X=foo$dbar.class
> 
> x:    $(X)
>       echo "$(X)"

Thanks for the suggestion. I named this target "w" in order to add to 
what I already had:

          X=foo$bar.class
         XX=foo$$bar.class
        XXX=foo\$$bar.class
          d=$$
          W=foo$dbar.class

        .PHONY: x xx xxx yy w

        x: $(X)
                echo $(X)

        xx: $(XX)
                echo $(XX)

        xxx: $(XXX)
                echo $(XXX)

        yy: $(XX)
                echo $(XXX)

        w: $(W)
                echo "$(W)"

However, other than the quotes, it doesn't seem to work differently from 
my previous "xx" target: 

        $ make w
        make: don't know how to make fooar.class. Stop
        $ gmake w
        echo "foo$bar.class"
        foo.class

        $ make xx
        make: don't know how to make fooar.class. Stop
        $ gmake xx
        echo foo$bar.class
        foo.class

Kees Jan wrote:
> Have you looked at Apache's Ant project? I don't like it myself, but if you
> want a portable make, you might as well use a Java one. :)

Hmm, well thanks for reminding me about ant. I guess I should really
consider it, unless I am ready to admit to being an old dog.

Jason

------------------------------------------------------------------------
Jason Brazile                                 [EMAIL PROTECTED]
Netcetera AG, 8040 Zuerich    phone +41 1 247 70 70  fax +41 1 247 70 75


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to