GNU bug report logs - #12657
Can't have spaces in source files

Previous Next

Package: automake;

Reported by: Hristo Venev <mustrumr97 <at> gmail.com>

Date: Mon, 15 Oct 2012 15:57:01 UTC

Severity: wishlist

Tags: wontfix

Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Nick Bowler <nbowler <at> elliptictech.com>
To: Hristo Venev <mustrumr97 <at> gmail.com>
Cc: 12657 <at> debbugs.gnu.org
Subject: bug#12657: Can't have spaces in source files
Date: Mon, 15 Oct 2012 15:31:10 -0400
On 2012-10-15 15:30 +0300, Hristo Venev wrote:
> Consider the following example:
>     bin_PROGRAMS = prog
>     prog_SOURCES = "a file.c" "another file.c"
> 
> This doesn't work and nor does any other way I have thought of.

Nope, it does not.  Unfortunately, make really does not work properly
with spaces in filenames, so Automake isn't going to be able to do
anything to help.  See §28.4 "Limitations on File Names" in the Automake
manual:

  https://www.gnu.org/software/automake/manual/automake.html#Limitations-on-File-Names

in particular:

  Source and installation file names like main.c are limited even
  further: they should conform to the POSIX/XOPEN rules described above

where the "POSIX/XOPEN rules" are described thusly:

  Portable packages should limit themselves to POSIX file names. These
  can contain ASCII letters and digits, ‘_’, ‘.’, and ‘-’. File names
  consist of components separated by ‘/’. File name components cannot
  begin with ‘-’. 

Cheers,
-- 
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)




This bug report was last modified 11 years and 148 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.