%% "Sudhir Sharma" <[EMAIL PROTECTED]> writes:

Tim posted some good comments; here's an answer to this specific
question:

  ss> But all the ".texi" files reside in another directory
  ss> /home/ssharma/docs-project/docs/src/. I have consulted the GNU Make User's
  ss> Manual and have attempted the following:

  ss> TEXI_SRC:=${vpath %.texi src}

As Tim points out, this syntax is not valid.

  ss> instead of:
  ss> TEXI_SRC:=${wildcard *.texi}
  ss> as src is a subdirectory to the current directory.

  ss> But it seems that make isn't searching the directory "src" and
  ss> leaving the macro "TEXI_SRC" empty. If "vpath %.texi src" returns
  ss> the ".texi" files from the directory "src", shouldn't this be
  ss> valid?

No.

The wildcard function doesn't interact with VPATH or vpath at all.
Wildcard does simple, straightforward file globbing.  Think of it like
"ls".

If you run $(wildcard *.texi) it will do the same thing as "ls *.texi".
If the files are in a subdirectory src, you want $(wildcard src/*.texi).

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://www.paulandlesley.org/gmake/
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist

Reply via email to