[Omake] dependency scanning
Aleksey Nogin
nogin at metaprl.org
Tue Jun 29 10:58:43 PDT 2010
Prashanth,
Sorry for slow response - somehow I just saw your message.
On 15.06.2010 16:50, Prashanth Mundkur wrote:
> $ cat OMakefile
> HTTP_LIB = $(OCamlLibrary http, http)
> .DEFAULT: $(HTTP_LIB)
> .SUBDIRS: tests
>
> $ cat tests/OMakefile
> OCAMLFLAGS += -I ..
> OCAML_LIBS[] += ../http
> TEST_PARSER = $(OCamlProgram test_http, test_http)
> .DEFAULT: $(TEST_PARSER)
>
Your issue is a result of you directly setting the OCAMLFLAGS - this way
OMake does not know about this include directory. You need to be
updating OCAMLINCLUDES instead.
E.g. in root OMakefile (before the .SUBDIRS):
OCAMLINCLUDES[] += $(dir .)
Hope this helps.
Aleksey
More information about the Omake
mailing list