Hi, A runscript can only read files in its own directory (I don't know if the lua parser has the same restriction), but it is entirely possible to check for existence in other directories. This approach I have used to good success compiling Haskell sources (which have similar direct dependencies). You can drop a Tupfile reading
include_rules run $(BUILD_SCRIPT) *.java in every source directory, and Tuprules.tup at the root: ROOT=$(TUP_CWD) BUILD_SCRIPT=$(ROOT)/build.sh $(ROOT) Then with the right build script you can scan each java source file for dependencies, check whether those dependencies exist in-tree (in any directory), and if so add a build rule listing them. Neil Shepperd -- -- tup-users mailing list email: [email protected] unsubscribe: [email protected] options: http://groups.google.com/group/tup-users?hl=en --- You received this message because you are subscribed to the Google Groups "tup-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
