This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Filenames containing blanks


>>> "gd" == Guido Draheim <guidod-2003-@gmx.de> writes:

 gd> Alexandre Duret-Lutz wrote:
 >>>>> "Ralf" == Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:
 Ralf> Hi,
 Ralf> Simple question: Does automake support filenames containing blanks?
 >> I guess nobody really bothered because Make itself uses blanks
 >> as filename separators.  '\ ' seems to be a GNU extension, does
 >> anybody knows of another implementation where it works?  (Do not
 >> misread this as an objection, I'm just curious to know where it
 >> can work.)

 gd> The '\ 's are not seen by make, they are interpreted by the shell
 gd> that is invoked in the make rule executions, right? And for data,
 gd> there is rarely the occasion it occurs in a make rule header...

$(data_DATA) is a dependency of all, check, install, and
distdir, in case data file need to be built.  So it matters.

Try 

FOO = f\ 1
all: $(FOO)

and compare


% make       # GNU make
make: *** No rule to make target `f 1', needed by `all'.  Stop.
% pmake      # NetBSD make
make: don't know how to make f\. Stop
% fmake      # FreeBSD make
make: don't know how to make f\. Stop

-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]