Hi,
I am enclosing the rule for making a target from a GNU make
file that I have written.
SHELL = /bin/sh
# Check if the present working directory contains any Java sources.
local:
listjava='$(wildcard *.java)';if test -f $(firstword $$listjava); \
then javac $$listjava; fi
If the present working directory does not contain any files
with the extension '.java', then listjava evaluates to the
empty string and gnu make gives the following error.
/bin/sh: test: argument expected
gmake: *** [local] Error 1
While gmake does continue the execution of the recursive tree
walk, the presence of this error for all those non-leaf level
directories that do not contain Java sources is distracting.
If this is a feature of gnu make, would you be kind enough to
suggest a workaround that eliminates this unsightly error from
the log file generated for the make?
Thanks very much.
jay
Jay Vaishnav
Chingari, Inc. http://www.chingari.com/
1032 Elwell Court, Suite 111
Palo Alto, CA 94303
Cell: (408) 396-5356
Work: (650) 254-0565 x224
Fax : (650) 254-0566