This is the mail archive of the cygwin@sourceware.cygnus.com 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]

B20 Bug in make 3.75


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
"gnu-win32-request@cygnus.com" with one line of text: "help".


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