[Omake] Augmenting rules

Aleksey Nogin anogin at hrl.com
Fri Mar 23 09:48:35 PDT 2007


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.

Aleksey

-- 
Aleksey Nogin, Research Staff Member
Advanced Technologies Department, Information & System Sciences Lab
HRL Laboratories, LLC, Malibu, CA


More information about the Omake mailing list