Liste des Groupes | Revenir à cu programmer |
On 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.
Les messages affichés proviennent d'usenet.