Sujet : Re: Long filenames in DOS/Windows and Unix/Linux
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.programmerDate : 04. Sep 2024, 01:41:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vb8aci$3hhg4$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
User-Agent : Pan/0.160 (Toresk; )
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.