[Omake] Getting information *out* of subdirs?

Jason Hickey jyh at cs.caltech.edu
Mon Sep 10 10:10:09 PDT 2007


Hi Chris,

You can export up the project tree, but you need to be explicit about  
it.  To do it, use .SUBDIRS with a body that includes the sub- 
OMakefile, then ends with the appropriate export.  Here is a silly  
example that illustrates how to do it.

Jason

% cat a/OMakefile
FILES = $(OCamlProgram foo, foo)
% cat OMakefile
.SUBDIRS: a
     include OMakefile
     export FILES

echo $(FILES)
% omake
...
a/foo a/foo.opt


On Sep 9, 2007, at 5:35 PM, Chris King wrote:

> Hi,
>
> I have two directories, st and mt, in which are built two different
> implementations of the same library (one for single-threaded apps, one
> for multi-threaded ones).  In the parent of these directories, I want
> to grab the list of generated files returned by each subdirectory's
> call to OCamlLibrary, for use with ocamlfind.
>
> Is there any way to do this short of moving the OCamlLibrary calls to
> the parent directory, e.g. an "export" that works across the directory
> hierarchy?
>
> Thanks,
> Chris
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake

--
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257





More information about the Omake mailing list