[Omake] Augmenting rules
Hugo Ferreira
hmf at inescporto.pt
Sun Mar 25 23:44:59 PDT 2007
Hello,
Aleksey Nogin wrote:
> On 23.03.2007 03:16, Hugo Ferreira wrote:
>
>> Is their a simple way to "augment" all existing rules of "*.ml" so
>> that "*.ppo" and "*.ppr" are processed in the exact same manner
>> including dependency checks?
>
> Hugo,
>
> One of the issues is that ocamldep will only output lines for
> .cmi/.cmo/.cmx. So the options would be:
>
> - Play around with adding bogus "%.ppo: :squash: %.cmo" dependencies
>
> - Pipe the ocamldep output to a scriplet that would add .ppo
>
> - Wait until the OCAMLDEP_MODULES_ENABLED stuff in OCaml.om is working
> properly and then change the OCamlScannerPostproc function to output
> .ppo dependencies as well.
>
I have created a o_%.ml target and simply removed the prefix "o_" of the
file name in question. This "new" file ml is then used as a normal
target. This works and will keep until I have access to the last option
above.
Thanks for the help.
Hugo F.
> Aleksey
>
More information about the Omake
mailing list