[Top][All Lists]

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

Re: target-specific rules and solaris make?

From: Assar Westerlund
Subject: Re: target-specific rules and solaris make?
Date: 09 Sep 2001 21:05:42 +0200
User-agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6

Richard Boulton <address@hidden> writes:
> 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
> '$(srcdir)/'`foo-test.c
> (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)

That seems to work fine.

Enclosed is a patch including the test case and a changelog entry.


Attachment: txtZChCP5KmRR.txt
Description: Text Data

reply via email to

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