Distclean [Was: [Omake] .PHONY rules in subdirs]
Aleksey Nogin
anogin at hrl.com
Mon Apr 9 11:04:04 PDT 2007
On 30.03.2007 13:11, Jonathan Roewen wrote:
> Hmm, the only thing with that is it returns all the scanner targets as
> well, which is kind of annoying.
>
> E.g. foo/bar/baz/scan-star-me-kitten.ml
>
> and the generatedfiles things in angled brackets...
Yes, the dependencies-proper function will do that. I've added a note
about it in the documentation. I've also added a section on other
(probably better) alternatives for distclean -
http://omake.metaprl.org/omake-system.html#section:distclean
> Also, it's not clever enough to remove .cmi files when I have sources
> with a .ml file but no corresponding .mli file it seems -- kind of
> odd.
Right - it is possible that nothing depends on that .cmi file (note that
the ocamldep without "OCAMLDEP_MODULES" will usually omit such
dependencies even when they actually exist); the file is then just a
side-effect of the .cmx rule, but not a dependency. Therefore the file
will be generated, but not included in the output of dependencies*
functions.
Note that the alternative methods (including the filter-proper-targets
one) will do the right thing here.
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