* [Caml-list] ocamlbuild, build a source that starts with _
@ 2016-02-09 13:35 Daniel Bünzli
2016-02-09 14:45 ` Daniel Bünzli
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Bünzli @ 2016-02-09 13:35 UTC (permalink / raw)
To: OCaml List
Hello,
It seems I can't convince ocamlbuild to build (i.e. copy) a source that starts with `_`.
Is there a workaround ?
mkdir -p /tmp/test
cd /tmp/test/
touch _bla.c
ocamlbuild _bla.c
Solver failed:
Ocamlbuild knows of no rules that apply to a target named _bla.c. This can happen if you ask Ocamlbuild to build a target with the wrong extension (e.g. .opt instead of .native) or if the source files live in directories that have not been specified as include directories.
Compilation unsuccessful after building 0 targets (0 cached) in 00:00:00.
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild, build a source that starts with _
2016-02-09 13:35 [Caml-list] ocamlbuild, build a source that starts with _ Daniel Bünzli
@ 2016-02-09 14:45 ` Daniel Bünzli
2016-02-09 14:47 ` Gabriel Scherer
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Bünzli @ 2016-02-09 14:45 UTC (permalink / raw)
To: OCaml List
Le mardi, 9 février 2016 à 14:35, Daniel Bünzli a écrit :
> Hello,
>
> It seems I can't convince ocamlbuild to build (i.e. copy) a source that starts with `_`.
> Is there a workaround ?
I guess this must be due to this line (though I have to admit that I have hard time to understand ocamlbuild's convoluted control flow).
https://github.com/ocaml/ocamlbuild/blob/master/src/main.ml#L150
so the answer seems to be no, which is quite annoying.
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] ocamlbuild, build a source that starts with _
2016-02-09 14:45 ` Daniel Bünzli
@ 2016-02-09 14:47 ` Gabriel Scherer
2016-02-09 15:06 ` Daniel Bünzli
0 siblings, 1 reply; 4+ messages in thread
From: Gabriel Scherer @ 2016-02-09 14:47 UTC (permalink / raw)
To: Daniel Bünzli; +Cc: OCaml List
[-- Attachment #1: Type: text/plain, Size: 1217 bytes --]
Well, it is still possible to work around this issue by re-doing the
slurping from the plugin:
https://gitlab.com/gasche-snippets/ocamlbuild-underscored-files/blob/master/myocamlbuild.ml
I wouldn't mind removing that test from future ocamlbuild releases -- as of
now I don't see any problem with "_oasis" or other "_tags" file being
considered parts of the build tree.
On Tue, Feb 9, 2016 at 9:45 AM, Daniel Bünzli <daniel.buenzli@erratique.ch>
wrote:
> Le mardi, 9 février 2016 à 14:35, Daniel Bünzli a écrit :
> > Hello,
> >
> > It seems I can't convince ocamlbuild to build (i.e. copy) a source that
> starts with `_`.
> > Is there a workaround ?
>
> I guess this must be due to this line (though I have to admit that I have
> hard time to understand ocamlbuild's convoluted control flow).
>
> https://github.com/ocaml/ocamlbuild/blob/master/src/main.ml#L150
>
> so the answer seems to be no, which is quite annoying.
>
> Daniel
>
>
>
> --
> Caml-list mailing list. Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
[-- Attachment #2: Type: text/html, Size: 2175 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-09 15:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 13:35 [Caml-list] ocamlbuild, build a source that starts with _ Daniel Bünzli
2016-02-09 14:45 ` Daniel Bünzli
2016-02-09 14:47 ` Gabriel Scherer
2016-02-09 15:06 ` Daniel Bünzli
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox