gmake environment variable trouble

  • Follow


Hi,

I like to port my makefile to Solaris. I cannot use automake et al,
because this makefile is also used on
my Windows box.

I have set OSTYPE in /etc/profile file as follows:

OSTYPE=solaris

Here is the small example:

TEMPOS='uname'

ifeq ($(TEMPOS), SunOS)
OSTYPE=solaris
endif

# More make stuff ...


But this doesn't work. I only could pass OSTYPE, if I use gmake -e
OSTYPE=solaris

Any help ?

Thanks, Lothar

0
Reply lothar.behrens (95) 11/1/2006 7:12:01 PM

lothar.behrens@lollisoft.de wrote:

> I have set OSTYPE in /etc/profile file as follows:
> 
> OSTYPE=solaris

  You need to add "export OSTYPE" to make this variable visible
to subsequently  executed  commands.


-- 
Alex Zhilyakov
Network Manager, Accatel Inc.
+1-212-3794000

0
Reply Alex 11/1/2006 7:25:05 PM


Thank you.

Lothar

Alex Zhilyakov wrote:
> lothar.behrens@lollisoft.de wrote:
>
> > I have set OSTYPE in /etc/profile file as follows:
> >
> > OSTYPE=solaris
>
>   You need to add "export OSTYPE" to make this variable visible
> to subsequently  executed  commands.
>
>
> -- 
> Alex Zhilyakov
> Network Manager, Accatel Inc.
> +1-212-3794000

0
Reply lothar 11/1/2006 7:41:14 PM

2 Replies
310 Views

(page loaded in 0.051 seconds)

Similiar Articles:




7/24/2012 8:24:10 AM


Reply: