* ocamlbuild: change the target name
@ 2007-09-14 9:45 Paolo Donadeo
2007-09-17 13:04 ` [Caml-list] " Nicolas Pouillard
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Donadeo @ 2007-09-14 9:45 UTC (permalink / raw)
To: caml-list
I'm porting the build system of Ex-nunc from a plethora of makefiles
to ocamlbuild.
Is it possible to change the name of the generated (bytecode or
native) executable name? The Ex-nunc page compiler has a main module
contained in the file (try to guess) mail.ml. Using:
$ ocamlbuild ...some options... main.byte
the program is correctly compiled and named main.byte, but I would
prefer the output was called "xnuncc".
Now I use the mv command, but it's not the best solution.
TIA,
--
Paolo Donadeo, Senior Software Engineer
Studio Associato 4Sigma
Email: p.donadeo@4sigma.it
~
~
:wq
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] ocamlbuild: change the target name
2007-09-14 9:45 ocamlbuild: change the target name Paolo Donadeo
@ 2007-09-17 13:04 ` Nicolas Pouillard
2007-09-17 16:31 ` skaller
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Pouillard @ 2007-09-17 13:04 UTC (permalink / raw)
To: Paolo Donadeo; +Cc: O'Caml Mailing List
Excerpts from Paolo Donadeo's message of Fri Sep 14 11:45:09 +0200 2007:
> I'm porting the build system of Ex-nunc from a plethora of makefiles
> to ocamlbuild.
>
> Is it possible to change the name of the generated (bytecode or
> native) executable name? The Ex-nunc page compiler has a main module
> contained in the file (try to guess) mail.ml. Using:
>
> $ ocamlbuild ...some options... main.byte
>
> the program is correctly compiled and named main.byte, but I would
> prefer the output was called "xnuncc".
>
> Now I use the mv command, but it's not the best solution.
There is many ways to do this kind of things.
1/ Rename your main.ml into xnuncc.ml and then accept to keep xnuncc.byte and
xnuncc.native names.
2/ Add a rule to myocamlbuild.ml to say that on can build xnuncc from
main.byte and that's just a copy.
...
copy_rule "The xnuncc binary" "main.byte" "xnuncc";;
...
The problem with this method is that the xnuncc file only live in the _build
directory. You have to manually copy it to install it.
3/ Use a script around ocamlbuild that make a link or a copy for you.
It's mainly a matter of installing things with ocamlbuild, that is a point
not really treated for now.
Best regards,
--
Nicolas Pouillard aka Ertai
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] ocamlbuild: change the target name
2007-09-17 13:04 ` [Caml-list] " Nicolas Pouillard
@ 2007-09-17 16:31 ` skaller
0 siblings, 0 replies; 3+ messages in thread
From: skaller @ 2007-09-17 16:31 UTC (permalink / raw)
To: Nicolas Pouillard; +Cc: Paolo Donadeo, O'Caml Mailing List
On Mon, 2007-09-17 at 15:04 +0200, Nicolas Pouillard wrote:
> Excerpts from Paolo Donadeo's message of Fri Sep 14 11:45:09 +0200 2007:
> The problem with this method is that the xnuncc file only live in the _build
> directory. You have to manually copy it to install it.
>
> 3/ Use a script around ocamlbuild that make a link or a copy for you.
>
> It's mainly a matter of installing things with ocamlbuild, that is a point
> not really treated for now.
I think that is right. It is not ocamlbuild's job to install things.
--
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-17 16:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-14 9:45 ocamlbuild: change the target name Paolo Donadeo
2007-09-17 13:04 ` [Caml-list] " Nicolas Pouillard
2007-09-17 16:31 ` skaller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox