bug-automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12657: Can't have spaces in source files


From: Nick Bowler
Subject: bug#12657: Can't have spaces in source files
Date: Mon, 15 Oct 2012 15:31:10 -0400
User-agent: Mutt/1.5.21 (2010-09-15)

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/)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]