To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 911
910  |  912
Subject: 
Re: Another possible makefile change
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 7 Mar 2000 12:25:39 GMT
Viewed: 
1343 times
  
"Rossz Vámos-Wentworth" wrote:

Since under Windows we must specify the PERL program name, unlike Unix and
variants which figure out what to do automagically, I suggest this change in
makefile.common:

Under Windows (assumes the perl program is on the PATH):
PERL = perl

Under Unix/Linux (leave it empty):
PERL =

Then we can modify the perl script commands to this:

MERGEMAP = $(PERL) $(LEGOS_ROOT)util/merge-map

Is there a way to make the assignment conditionally?  I haven't found an
internal variable in Make that specifies the OS.

Although *nix system's try to figure out the interpreter for a script if
you don't provide it, it doesn't harm to do so. Thus, actually you
dont't have to distinct 2 cases here. We could simply use the MERGEMAP
you suggest for all currently supported systems.

However, i guess sooner or later we might need conditionals depending on
the OS. The easiest way to detect the OS running under *nix is the
command uname. On linux systems, the ouput is: Linux. Is that command
available in the cygwin environment ?

--Martin



Message has 1 Reply:
  Re: Another possible makefile change
 
(...) Then for cross plateform compatibility, we should modify all the references to perl script to include the program name. It doesn't hurt Linux, and is essential in a DOS shell. (...) I researched your 'uname' suggestion and came up with the (...) (25 years ago, 8-Mar-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Another possible makefile change
 
Since under Windows we must specify the PERL program name, unlike Unix and variants which figure out what to do automagically, I suggest this change in makefile.common: Under Windows (assumes the perl program is on the PATH): PERL = perl Under (...) (25 years ago, 6-Mar-00, to lugnet.robotics.rcx.legos)

9 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR