Mail Archives: cygwin/1998/11/12/21:58:04
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 AT cygnus DOT com" with one line of text: "help".
- Raw text -