[Omake] Re: Announcing OMake 0.9.8

Michael Vanier mvanier at cs.caltech.edu
Tue Dec 12 01:46:50 PST 2006


Huh, I fixed the problem by changing

CLEANFILES = $`(file *.opt *.run *.o *.obj *.lib *.cm* *.a *~)

to

CLEANFILES = $`(glob *.opt *.run *.o *.obj *.lib *.cm* *.a *~)

My clean target is just

clean:
     $(RM) $(CLEANFILES)

Mike

David Kågedal wrote:
> Michael Vanier <mvanier at cs.caltech.edu> writes:
> 
>> Follow-up.  In osh:
>>
>> % Shell.rm(main/*.o)
>> *** omake error:
>>    File -: line 1, characters 0-18
>>    unlink(/home/mvanier/proj/src/main/*.o): No such file or directory
>> % Shell.rm(-f main/*.o)
>>
>> and the *.o files in the main subdirectory don't get removed.
>>
>> So it looks like the file glob is being taken literally, and is failing silently.
> 
> This is from the release notes:
> 
>       + The Shell. aliases will now receive the values passed on the
>         shell command line as is, not the string-expanded version. Also,
>         if some of the arguments are the result of a glob-expansion, the
>         alias function will receive the appropriate file values, not the
>         strings.
> 
> The problem is that it's hard to understand what the second sentence
> means.  Who does the glob expansion, and when?
> 


More information about the Omake mailing list