Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Dave Korn" To: 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: 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 AT mace /tmp> cat Makefile WORKSPACE=$(shell pwd) test: @echo $(wildcard $(WORKSPACE)/ph*/*.cx) dk AT 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 AT mace /tmp> make /tmp/phase1/main.cx /tmp/phase3/p123.cx /tmp/phase3/phase3.cx dk AT 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/