[Omake] Passing full target paths to compilers
Jason Hickey
jyh at cs.caltech.edu
Sat Jun 10 14:15:59 PDT 2006
I have added a --absname option that will force omake to use absolute
pathnames for all files.
I am a bit dubious of this option, because it may have unintended
side-effects (for example, when you create a symlink, with --absname it
will link to the absolute name).
Also, omake considers rules to be out-of-date if the commands-text
changes. To minimize build times, you should avoid switching back and
forth.
The --absname is a scoped option. If you want to specify where it is
used, use the OMakeFlags function.
OMakeFlags(--absname)
# --absname is now in effect
or even
section
OMakeFlags(--absname)
...
Jason
Benjamin Pierce wrote:
> Since my project involves OCaml files in several directories, I want to
> invoke the OCaml compiler with the full absolute pathname of each
> source .ml file, so that error messages will be printed in a way that
> emacs can interpret, no matter where I do the compilation from. Is
> there an easy way to achieve this?
>
> (I tried the obvious one -- changing
>
> OCamlProgram($(RESULT), $(rootname $(SOURCES)))
>
> to
>
> OCamlProgram($(RESULT), $(absname $(rootname $(SOURCES))))
>
> but this seems to have no effect.)
>
> Thanks,
>
> - Benjamin
>
>
> _______________________________________________
> Omake mailing list
> Omake at metaprl.org
> https://lists.metaprl.org/mailman/listinfo/omake
--
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