|
From: | Mohun Biswas |
Subject: | -include is not completely silent? |
Date: | Wed, 24 Mar 2004 16:00:01 -0500 |
-include *.Pand no files match the pattern, a literal "*.P" would be returned (presumably) and make would still be silent. But I just tried the following to pick up a few dependencies from a subdirectory:
-include $(shell find . -name \*.P -print) and get the warning: Makefile:282: no file name for `-include'in the case where no .P files exist yet. IMHO, silent should mean silent but there may be history I don't know about here.
I remember some Unix variant used to behave like this with "rm -f" so you'd have to say something like "rm -f $(FILES) /dev/null" to make sure rm saw at least one file and didn't complain. I believe that was eventually "fixed".
Thanks,MB
[Prev in Thread] | Current Thread | [Next in Thread] |