In message <[EMAIL PROTECTED]>, "Paul D
. Smith" writes:
>%% [EMAIL PROTECTED] writes:
>
>  h> I'm not sure whether it's a bug or a feature. But it's annoying
>  h> to me at the very least. Targets in a makefile are filenames,
>  h> in most cases.
>
>They may be filenames in most cases, but make treats them as strings in
>virtually all cases.  Make does simple string matching, not complex path
>matching.

Well, I also noticed that gmake produces a different message in this case,
comparing to when it gets a non-existent target. If target names are strings,
the "No rule to make target ..." message is much clearer and easier for me
to debug the makefile.

$ pwd
/home/hyu
$ cat Makefile
a.o: a.c
        touch a.o
$ touch a.c
$ gmake ../hyu/a.o
gmake: Nothing to be done for `../hyu/a.o'.
$ gmake whatever
gmake: *** No rule to make target `whatever'.  Stop.

Hua


_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to