help-make
[Top][All Lists]
Advanced

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

Re: Simple way to ascertain whether we're running on Windows?


From: Angus Leeming
Subject: Re: Simple way to ascertain whether we're running on Windows?
Date: Wed, 27 Jul 2005 14:30:04 +0100
User-agent: KMail/1.7.1

On Wednesday 27 July 2005 14:05, Dave Hylands wrote:
> > Is there a simple way to do so on Windows only? In pseudo code:
>
> The environment variable WINDIR is always set under Windows
> (although sometimes its lowercase). so you could do something like:
>
> ifeq ($(WINDIR)$(windir),)
>   EXEEXT =
> else
>   EXEEXT = .exe
> endif
>
> > Ideally, "simple" means "without using a gnu make extension".
>
> ifeq is a GNU extension.

That's great, Dave.

However, before I make the change, is there a way to do this with 
traditional makes too? I'm planning on posting the changes back to 
CTAN and they'll probably want something generic if possible.

Angus




reply via email to

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