Well, title says it all, I want to change the name of my executable because right now I have
Executable myexec
Path: .
BuildTools: ocamlbuild
MainIs: main.ml
CompiledObject: best
And it produces a file main.native
instead of myexec
, for example.
What I tried to do is to write
PostBuildCommand: cp -L main.native myexec
But that's because I know it will produce a file main.native
. What if on another computer it produces a main.byte
executable. I can't write :
PostBuildCommand: cp -L main.* cubicle
I find it awful. I saw this post but, strangely, the Oasis part answers to the location question but not the executable name.