%% Jack Zhou <[EMAIL PROTECTED]> writes:

  jz> Sorry I didn't make myself clear enough, what I meant is
  jz> dependency over every .class files under directory, these files
  jz> may be in sub directories of current directory.  If they are all
  jz> under directory, I can simply use wildcard function.  The tricky
  jz> part is if they are in arbitary subdirectories, I don't know how
  jz> to do this.  Please advise, thanks.

SOURCES := $(shell find . -name '*.class' -print)

  jz> --- [EMAIL PROTECTED] wrote:

  >> If by class files you mean .class file you could do
  >> something like
  >> 
  >> SOURCES = $(shell ls -1 *.jav  2> /dev/null )

In general you never want to use "=" with expensive functions like
$(shell ...).  Always use :=, unless you really have a specific need for
"=".

-- 
-------------------------------------------------------------------------------
 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

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

Reply via email to