delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/17/17:00:23

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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: "Rolan Christofferson" <rolan AT creativecorp DOT com>
To: <cygwin AT cygwin DOT com>
Subject: wildcard in make exhibits strange behavior
Date: Wed, 17 Sep 2003 14:58:34 -0600
Message-ID: <ONEBKKICLJAMJBFJLCHPCEGOCAAA.rolan@creativecorp.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Importance: Normal
X-Spam-Processed: creativecorp.com, Wed, 17 Sep 2003 14:58:34 -0600
(not processed: message from valid local sender)
X-MDRemoteIP: 192.168.1.141
X-Return-Path: rolan AT creativecorp DOT com
X-MDaemon-Deliver-To: cygwin AT cygwin DOT com

Windows 2000
cygwin 1.5.4
make 3.80-1

Makefile
all:
	@echo $(wildcard */*.java)

directory structure
a/a1.java
a/a2.java
a/a3.java
b/b1.java

When I enter the command make, I get the output
a/b1.java b/b1.java

If I rename the directory b to c, I get the output
a/a1.java a/a2.java a/a3.java c/b1.java
(correct behavior)

Now rename a to b, and then c to a.
The directory structure is now
a/b1.java
b/a1.java
b/a2.java
b/a3.java
Now when I run make, I get
a/a1.java a/a2.java a/a3.java b/a1.java b/a2.java b/a3.java

Put things back the way they started, and add the directory c:
c/c1.java
c/c2.java
I run make and I get
a/b1.java b/b1.java c/c1.java c/c2.java

Neat, huh?

It looks like there is something special about the directory names
a and b, but not c.

Rolan Christofferson
Senior Consultant

CCC
1380 Forest Park Circle
Lafayette, Colorado, 80026
Phone: 303-627-6509
www.creativecorp.com


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

- Raw text -


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