[Omake] can't find the error in my omakefile
Aleksey Nogin
nogin at metaprl.org
Mon Feb 12 11:11:50 PST 2007
On 12.02.2007 10:33, malc wrote:
> Hello,
>
> This bugged me for a while and is a variation of the OPs problem.
> Thing you see is not what shell gets.
>
> <transript>
> tmp$ touch moo.c
> tmp$ cat OMakeroot
> .SUBDIRS: .
> moo.o:
> ocamlc -c -ccopt '-Wall -w -o moo.o' moo.c
> .DEFAULT: moo.o
> tmp$ omake
> *** omake: reading OMakefiles
> *** omake: finished reading OMakefiles (0.0 sec)
> - build . moo.o
> + ocamlc -c -ccopt -Wall -w -o moo.o moo.c
> *** omake: done (0.1 sec, 0/0 scans, 1/1 rules, 1/34 digests)
> </transcript>
>
> So we have single quotes in original command, but they are ommited
> in the OMakes output. Slightly unnerving.
>
Right, as I said in the previous message, this is definitely something
we are planning to fix. We would probably end up printing something like
+ ocamlc -c -ccopt -Wall\ -w\ -o\ moo.o moo.c
although printing
+ ocamlc -c -ccopt '-Wall -w -o moo.o' moo.c
(_regardless_ of whether single quotes, double quotes, or something else
was used in the original command line).
Aleksey
More information about the Omake
mailing list