Stephen Hahn wrote:
> * Danek Duvall <[EMAIL PROTECTED]> [2007-11-19 15:16]:
>> On Mon, Nov 19, 2007 at 03:12:25PM +0000, Trevor Watson wrote:
>>
>>> The question is, is this a fault in my environment, or do others see this 
>>> when they do a 'make install'?  To verify it, remove the proto directory 
>>> run 'make install' and the check to see if there are any files in 
>>> proto/root_/usr/share/lib/pkg
>> They're in my proto area.  Note that you seem to be missing an "i386" after
>> that underbar in yours; I don't know if that's another symptom of the same
>> problem ...
> 
>   The problem is "use of gmake", I believe.  You need to use a make that
>   supports Sun extensions.
> 
>   - Stephen
> 

One portable way of expressing conditional arguments in Makefiles is to
do something like:

: [EMAIL PROTECTED]; cat Makefile
FOO_foo.o = Use args suitable for building foo.o
FOO_bar.o = use args suitable for building bar.o

FOO=$(FOO_$(@))

default: foo.o bar.o

foo.o bar.o:
         echo $(FOO)

: [EMAIL PROTECTED];

This sort of expression works w/ both gmake and Sun make.

- Bart



-- 
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to