[Omake] omake not rebuilding ocaml program if dependency changes

Aleksey Nogin nogin at metaprl.org
Sat Dec 30 11:52:20 PST 2006


On 29.12.2006 23:02, erickt at dslextreme.com wrote:

> Can't figure this out. Say I have these files:
> 
> foo.ml:
> print_string "hello";;
> print_string (Bar.spaces 5);;
> print_string "hello";;
> print_newline ();;
> 
> bar.ml:
> let spaces level = String.make (level*2) ' ';;
> 
> OMakefile:
> FILES[] =
>     bar
>     foo
> 
> .DEFAULT: $(OCamlProgram main, $(FILES))
> 
> if I modify either of the .ml files, the program isn't automatically
> regenerated. Any idea why this isn't happening?

Erick,

Have you tried to run "omake --verbose" to see what does happen? Note
that the new version of OMake is fairly silent by default (only printing
the commands that either fail or produce some output).

Also, if you change the files in an "unimportant" way - that is change
the way code is formatted without affecting the binaries that the
compiler is producing, OMake is smart enough to know that the main
executable does not need to be rebuilt (as the binaries for the
individual modules stayed the same).

Hope this helps.

Aleksey


More information about the Omake mailing list