Liste des Groupes | Revenir à cu programmer |
Lawrence D'Oliveiro <ldo@nz.invalid> writes:[I tried to restore the newlines at the appropriate places here, I hopeOn Tue, 03 Sep 2024 17:19:17 -0700, Keith Thompson wrote:Lawrence D'Oliveiro <ldo@nz.invalid> writes:I have some Makefiles with spaces in the dependency names, of the form:
>
target\ name\ with\ space : source\ name\ with\ space
I'd be interested in knowing how you do that.
>
>$ cat Makefile>
foo\ bar: foo\ bar.c
$ make
cc foo bar.c -o foo bar
cc: fatal error: input file ‘foo’ is the same as output file
compilation terminated.
The Makefiles in question are not using the default build rules for C
code: they are building other things, with explicit use of the "$<" and
"$@" variable substitutions.
I'd still be interested in seeing an example. In a quick experiment,
I wasn't able to get GNU Make to recognize the existence of a file named
"foo bar".
Les messages affichés proviennent d'usenet.