Subject: B20 Bug in make 3.75
From: [email-masked] (Hugh Winkler)

12 Nov 1998 21:58:04 -0800
Message-ID: <[email-masked]>
Reply-To: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
To: <[email-masked]>

Hi all,

I don't think the only problem with make is in static pattern rules. Here's
another case, similar to a previously reported case in that it has multiple
targets but different in that it has simple dependencies:

##### Begin Makefile #####
# Makefile demonstrating bug in GNU make 3.75 in Cygwin b20
# Multiple targets fails if absolute path is given
# Succeeds with abs. path and single target, or multiple relative targets

# Define an absolute path to some directory.
# Put two files there a.c and b.c; they can be "main(){}".
# B=.  [relative instead of absolute here, would succeed, or...]

B=/hugh/makebug

# Targets will be two .exe's
# PROGS= $B/a.exe  [...one target here would succeed]

PROGS= $B/a.exe $B/b.exe

INSTALL: $(PROGS)

$(PROGS):  a.c b.c
        $(CC) $(CFLAGS) $< $(LFLAGS) -o $@

#### end of Makefile ######

Here's a snippet of output from "make -rd" :
Considering target file `INSTALL'.
 File `INSTALL' does not exist.
 Looking for an implicit rule for `INSTALL'.
 No implicit rule found for `INSTALL'.
  Considering target file `/hugh/makebug/a.exe'.
   File `/hugh/makebug/a.exe' does not exist.
   Looking for an implicit rule for `/hugh/makebug/a.exe'.
   No implicit rule found for `/hugh/makebug/a.exe'.
   Finished dependencies of target file `/hugh/makebug/a.exe'.
  Must remake target `/hugh/makebug/a.exe'.
make: *** No rule to make target `/hugh/makebug/a.exe', needed by `INSTALL'.
Stop.

MAKE_MODE is UNIX and I'm using Sergey's cygwin1.dll of Nov. 8 1998.

Hugh Winkler
Scout Systems, Inc.

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".