[Top][All Lists]

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

Re: target-specific rules and solaris make?

From: Richard Boulton
Subject: Re: target-specific rules and solaris make?
Date: 09 Sep 2001 19:41:19 +0100

> From some rapid examination of the documentation, I do not see any way
> of doing it.


Perhaps the ./ solution is best.

Alternatively, how about assigning the name to a variable, and using
that instead.  ie:

foo_test-foo-test.$(OBJEXT): foo-test.c
$(foo_test_CFLAGS) $(CFLAGS) -c -o foo_test-foo-test.$(OBJEXT)
`AMFILENAME=foo-test.c test -f $AMFILENAME || echo

(Is that method of assignment portable?  I always have to look that it
up.  If not, the above with a portable assignment... ;-) )

The above seems slightly better since it won't fail if the filename is
an absolute path (though how that would happen I'm not sure)

Just a suggestion.


reply via email to

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