[GRASS5] Win32 compile with cygnus ...

Justin Hickey jhickey at hpcc.nectec.or.th
Thu Nov 23 00:18:57 EST 2000


Hello Mike

Mike Thomas wrote:
> There is a gmake5 script in /usr/local/bin:
> ---------------------------------------
> :
> SRC=//f/source/cvsroot/grass/src
> CMD=//f/source/cvsroot/grass/src/CMD
> HEADER=head.i586-pc-cygwin
> HASX=yes
> HASMotif=no
> MAKE=make
> . //f/source/cvsroot/grass/src/CMD/generic/gmake.sh
    ^^

I think I may have found the problem. It depends on your setup and
cygwin, but these two slashes on a windows machine may be interpreted
(such as in Tcl) as a network file where f would be the machine name. I
assume that f is not a machine name, thus, cygwin may be trying to find
the file on a machine named f instead of the directory f. Thus, you are
getting the error you mentioned in your previous mail (it has the same
//).

Unfortunately, I have no idea where the double slash is coming from. It
appears to be coming from the interpretation of environment variables,
but I'm not sure, I've never used cygwin.

> ---------------------------------------
> # GMAKE must be set outside this script, by CMD/GISGEN
> 
> : ${GMAKE?}
> $GMAKE -sh
> eval `$GMAKE -sh` || exit 1
> : ${GISBASE?} ${SRC?} ${CMD?}
> ---------------------------------------

<skip>

> Never-the-less:
> 
> 1.  Why does BASH seem to execute the same line twice?
> 2.  Why do we need both gmake5 and gmake5.0 and why are the names so
> confusing?

Good questions. 

Markus,

Is the only reason for these two GMAKE lines in GISGEN is to get the
environment variables? These lines don't make very much sense to me. In
fact, there is no Gmakefile to make since a couple of lines before this
there is a "cd /tmp". So, why do we run gmake?

I would suggest we change gmake5.0 to just gmake or maybe grassGmake to
avoid confusion with GNU gmake. What do you think?

Also, why are we accessing CMD/generic/gmake5.0 instead of
UNIX_BIN/gmake5 which was made in the pre-install target? I think we
should change the Makefile to use the UNIX_BIN/gmake5 script instead.

Sorry I couldn't be of much help Mike.
 
-- 
Sincerely,

Jazzman (a.k.a. Justin Hickey)  e-mail: jhickey at hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand
==================================================================
People who think they know everything are very irritating to those
of us who do.  ---Anonymous

Jazz and Trek Rule!!!
==================================================================

---------------------------------------- 
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo at geog.uni-hannover.de with
subject 'unsubscribe grass5'



More information about the grass-dev mailing list