[Omake] -exists and dependencies

Michael Furr furr at cs.umd.edu
Sun Sep 23 14:11:21 PDT 2007


I found some wierd behavior with {filter,file}-exists functions when used 
with the *-dependencies functions.  Assume I have a project with a file 
test.ml, but no test.mli.  Then the rule:

.PHONY: foo
foo: test.cmx
 	foreach(name, $(filter-exists $(dependencies-all test.cmx)))
 	  echo $(name)
 	  echo $(file-exists $(name))

prints:

   test.cmx
   true
   test.ml
   true
   test.mli
   true

So, both the filter-exists and file-exists function thinks that the file 
"test.mli" exists, but it is not on the filesystem.  However, if I execute 
"$(file-exists test.mli)" directly, it returns false.

-m

PS. This is with 0.9.8.5-3.


More information about the Omake mailing list