Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.unix.programmer Subject: Re: Long filenames in DOS/Windows and Unix/Linux Date: Wed, 4 Sep 2024 00:41:55 -0000 (UTC) Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <9e7a4bd1-bfbb-4df7-af1a-27ca9625e50bn@googlegroups.com> <20240903084440.0000663d@gmail.com> <20240903103327.395@kylheku.com> <20240903113937.000008a3@gmail.com> <20240903130000.933@kylheku.com> <20240903132547.00000656@gmail.com> <87seug1iyj.fsf@nosuchdomain.example.com> <20240903155649.659@kylheku.com> <87jzfs1f6p.fsf@nosuchdomain.example.com> <87frqg1da2.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 04 Sep 2024 02:41:55 +0200 (CEST) Injection-Info: dont-email.me; posting-host="176f5fbfb5d1157be6fd816dae78eee8"; logging-data="3720708"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX183ZyUdmEsBXHWVhknCdPbd" User-Agent: Pan/0.160 (Toresk; ) Cancel-Lock: sha1:aB98d3e2H8GyGxV0ODcHUWqtChc= Bytes: 2148 On Tue, 03 Sep 2024 17:19:17 -0700, Keith Thompson wrote: > Lawrence D'Oliveiro 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.