[Omake] Re: dependencies-proper (re: filter-proper-targets)
Jason Hickey
jyh at cs.caltech.edu
Mon Jun 19 09:19:17 PDT 2006
Benjamin Pierce wrote:
> Looking more closely at the list, I see that there is some other junk
> in there, including (most annoyingly) .o files. Is this a bug in
> dependencies-proper, or in my reading of its documentation?
dependencies-proper returns "all recursive dependencies, except the
dependencies that are leaf targets," which seems more like the
complement of what you want...
How about filtering the .ml* files from the complete list?
etags $(filter %.ml %.mli, $(dependencies-all $*))
You could also ignore the dependency graph (but this may pick up some junk):
etags $(find $* -name *.ml -o -name *.mli)
BTW, for the !!! warning before, we need to fix it (by catching
exceptions in rule evaluation). A workaround is to define BYTE_ENABLED...
Jason
> On Jun 19, 2006, at 11:26 AM, Benjamin Pierce wrote:
>
>> My next try was:
>>
>> TAGS: $(SRCDIR)/harmony
>> etags $(dependencies-proper $*)
>>
>> But this also failed, in a different way:
>>
>>
>> *** process creation failed:
>> *** omake error:
>> File -: line 1, characters 2184-2185
>> syntax error: "etags src/parser.mli src/parser.mly src/info.o
<snip>
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the Omake
mailing list