delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/23/16:35:31

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Marco van de Voort" <marcov AT stack DOT nl>
To: Tadeusz Liszka <tad AT comco DOT com>
Date: Fri, 23 Feb 2001 22:34:26 +0100
Subject: Re: makefile that doesn't work
Cc: cygwin AT cygwin DOT com
Message-ID: <3A96E572.27412.1CB0D52@localhost>
In-reply-to: <3A96D4A9.E406F3ED@comco.com>
X-mailer: Pegasus Mail for Win32 (v3.12c)

> I modified your makefile to print some intermediate results. See below for
> the comments on how the makefile works. To find the problem type:
> 	which pwd
> or
> 	which pwd.exe
> in the bash shell (or find it manually if this fails).
> 
> My guess is that the $PATH variable is not correct (I recall that on
> Windows it may have Path PATH and path and it somehow concatenates them
> together

(we already found a workaround). The problem is the different path 
separator (';' vs':')  in the path env.
 
> However for me this single line works and does the same as all your lines
> BASEDIR1 := $(shell pwd)
> 
> Your code goes long way around to have the same result, and obviously it
> fails in some situations.

> If you do not know much about make :-) then make sure that the lines with
> 'echo' start with TAB, not space

:-) I'm not that bad.
  
Thanks. This looks cleaner than the solution one of our members 
came up with, and we'll start some testing on the different targets to 
see what is best.



Marco van de Voort (MarcoV AT Stack DOT nl or marco AT freepascal DOT org)



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019