[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: VPATH for directories with spaces
From: |
Jens Schweikhardt |
Subject: |
Re: VPATH for directories with spaces |
Date: |
Wed, 14 May 2003 15:14:53 +0200 |
User-agent: |
Mutt/1.4.1i |
On Wed, May 14, 2003 at 05:31:40AM -0700, Oleg V. Zhilin wrote:
# Hi,
#
# I'm currently doing a porting of one of my Windows
# projects for Linux. It is C++ project. This project's
# sources are structured to directories, that have
# blanks in their names. Since there're quite a few
# source files there I don't want to enumerate them all
# explicitly, but to make use of VPATH variable in GNU
# Make makefile.
Note that make has always considered a blank in almost every context to
be a token delimiter. And the shell does it in many places too.
# The problem I've encountered is that I failed to
# configure VPATH so that it "understand" directories
# names with blanks, using just ':' as separators. Any
# combination of quotation marks (both " and ') makes
# VPATH contents totally invalid.
Which does not really surprise, as make does not do quoting--the shell
does.
# Does anyone know about the solution of this problem
# or the fact that this is GNU Make "feature" indeed.
Get rid of the blanks in your project by substituting them with e.g. an
underscore (which unlike the hyphen is in the POSIX portable file name
character set.) Do this once in an automated way and you will save
yourself and others a lot of trouble.
Regards,
Jens
--
Jens Schweikhardt http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)