[Omake] dependency scanning
Prashanth Mundkur
prashanth.mundkur at gmail.com
Tue Jun 29 14:09:54 PDT 2010
On Tue, Jun 29, 2010 at 10:58 AM, Aleksey Nogin <nogin at metaprl.org> wrote:
> 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.
This helped enormously. Thanks!
--prashanth
More information about the Omake
mailing list