This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: wildcard in Makefile giving wrong output


WFM (XP, 20040322 snapshot, make 3.80-1) . However, this has been reported
before:

http://www.cygwin.com/ml/cygwin/2003-09/msg01172.html

> > -----Original Message-----
> > From: Dave Korn [mailto:dk@artimi.com] 
> >
> > > -----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.
> > 




	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]