[Omake] Some problems with -pack
Achim Blumensath
blumensath at mathematik.tu-darmstadt.de
Sun Mar 25 23:53:43 PDT 2007
Hello,
I've converted my project to omake (version 0.9.8.1) recently and
stumbled upon some problems with the support for the -pack option:
(a) How do I tell omake to consider the modules generated by -pack when
computing dependencies? Currently, I use commands
LocalOCamlGeneratedFiles(lib/Foo.cmx Flib/oo.cmi Flib/oo.o)
in any subdirectory which depends on the package Foo. But this does not
seem to work. When Foo changes not everything that should be recompiled
is updated.
(b) I tried to use OCAMLDEP_MODULES to see whether this would solve (a).
Unfortunately, with this option (Local)OCamlGeneratedFiles has no
effect. My project uses two camlp4 extensions which have to be compiled
before dependency analysis. How am I to tell omake to do so without
using (Local)(OCamlGeneratedFiles)?
(c) I had a hard time debugging a problem with OCamlPackage which turned
out to be caused by my usage of the variable $(CMO) which clashes with
an internal variable of OCamlPackage. Is this supposed to happen?
(d) When using OCamlPackage(Foo, $(modules)) I have to compile every
file in $(modules) with the -for-pack option. What is the preferred way
to do so? Currently, I use the function:
OCamlPackageModules(package, modules) =
section
# compile the modules with "-for-pack"
OCAMLFLAGS += -for-pack $(package)
foreach(m, $(modules))
if $(target-exists $(m).ml)
if $(NATIVE_ENABLED)
$(m).cmx $(m).o: $(m).ml
else
$(m).cmo: $(m).ml
if $(target-exists $(m).mli)
$(m).cmi: $(m).mli
elseif $(target-exists $(m).ml)
$(m).cmi: $(m).ml
(e) Why does OCamlLibraryCopy define the variable FILES? It is not used
anywhere in OCaml.om.
PS: In case anyone wants to take a look, my sources can be found at:
http://developer.berlios.de/projects/ant/
Achim
--
________________________________________________________________________
| \_____/ |
Achim Blumensath \O/ \___/\ |
TU Darmstadt =o= \ /\ \|
www.mathematik.tu-darmstadt.de/~blumensath /"\ o----|
____________________________________________________________________\___|
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url : http://lists.metaprl.org/pipermail/omake/attachments/20070326/c987e80f/attachment.bin
More information about the Omake
mailing list