but how do I add the directories where those found classes reside to the VPATH? If I simply add the class file names, make will not find them unless I add their paths to VPATH. Please advise, thx. jz --- "Paul D. Smith" <[EMAIL PROTECTED]> wrote: > %% 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 __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ _______________________________________________ Help-make mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/help-make
