[Omake] -exists and dependencies
Mike Furr
furr at cs.umd.edu
Mon Sep 24 10:26:08 PDT 2007
Aleksey Nogin wrote:
> So the second dependency of test.cmx is a "exists" property of test.mli
> (if test.cmx is built in absence of test.mli and later test.mli is
> created, the "exists" dependency changes and the test.cmx is no longer
> considered up-to-date). Obviously, the "exists" property always exists.
Ok, but this is not what the documentation says the functions does:
"The file-exists function checks whether the files listed exist."
> Perhaps we need some sort of "filter-normal-files" function that drops
> all dependencies that are not proper files (filtering out scanner
> targets, phony targets, "exists" dependencies, etc).
I would recommend the opposite. I think a stronger separation between
file "exists" (in the actual sense of the word) and a target having an
"exists property" should be made. I would use "file-exists" to be what
you describe as "proper files" since it is already documented this way
any any other meaning would be confusing (to say the least).
Cheers,
-mike
More information about the Omake
mailing list