Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
From: "Dave Korn" <dk@artimi.com>
To: <cygwin@cygwin.com>
Subject: RE: wildcard in Makefile giving wrong output
Date: Thu, 13 May 2004 10:24:20 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
In-Reply-To: <40A265C1.5020404@equator.com>
Message-ID: <NUTMEGGJ2TUSzbAUfKR000000c1@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 13 May 2004 09:24:20.0960 (UTC) FILETIME=[12973600:01C438CC]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Nitin Gupta
> Sent: 12 May 2004 18:58

> cat Makefile
> 
> 
> WORKSPACE=$(shell pwd)
> test:
>     @echo $(wildcard $(WORKSPACE)/ph*/*.cx)
> =============
> 
> Directory structure
> Makefile
> phase1/
> phase3/
> 
> phase1/main.cx
> phase1/phase1.hx
> 
> phase3/p123.cx
> phase3/p123.hx
> phase3/phase3.cx
> phase3/phase3.hx
> 
> ======================
> output of make (WRONG, please note main.cx is missing and p123.cx is 
> mentioned twice)
> /cygdrive/m/users/qasoft/tmp/bug/phase1/p123.cx 
> /cygdrive/m/users/qasoft/tmp/bug/phase1/phase3.cx 
> /cygdrive/m/users/qasoft/tmp/bug/phase3/p123.cx 
> /cygdrive/m/users/qasoft/tmp/bug/phase3/phase3.cx
> ========================

Bizarre.  WFM:

-------------------------------------------
dk@mace /tmp> cat Makefile

WORKSPACE=$(shell pwd)

test:
        @echo $(wildcard $(WORKSPACE)/ph*/*.cx)

dk@mace /tmp> ls -lartR
.:
total 1
drwxrwx---+  16 artimius Users           0 Apr 28 16:15 ..
drwxr-xr-x+   2 dk       Domain U        0 May 13 10:12 phase3
drwxrwxrwx+   4 artimius Users           0 May 13 10:17 .
drwxr-xr-x+   2 dk       Domain U        0 May 13 10:18 phase1
-rw-r--r--    1 dk       Domain U       83 May 13 10:19 Makefile

./phase3:
total 0
-rw-r--r--    1 dk       Domain U        0 May 13 10:11 p123.cx
-rw-r--r--    1 dk       Domain U        0 May 13 10:11 p123.hx
-rw-r--r--    1 dk       Domain U        0 May 13 10:12 phase3.cx
-rw-r--r--    1 dk       Domain U        0 May 13 10:12 phase3.hx
drwxr-xr-x+   2 dk       Domain U        0 May 13 10:12 .
drwxrwxrwx+   4 artimius Users           0 May 13 10:17 ..

./phase1:
total 0
-rw-r--r--    1 dk       Domain U        0 May 13 10:11 main.cx
-rw-r--r--    1 dk       Domain U        0 May 13 10:11 phase1.hx
drwxrwxrwx+   4 artimius Users           0 May 13 10:17 ..
drwxr-xr-x+   2 dk       Domain U        0 May 13 10:18 .
dk@mace /tmp> make
/tmp/phase1/main.cx /tmp/phase3/p123.cx /tmp/phase3/phase3.cx
dk@mace /tmp>
-------------------------------------------

  So, can't reproduce it here.  Please do verify that your directory
contents actually are what you think they are, and that they haven't somehow
become inadvertently crosslinked or duplicated or something.



    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

