help-make
[Top][All Lists]
Advanced

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

GNU make and Windows whitespace in path/file names


From: Goszczynski, Piotr
Subject: GNU make and Windows whitespace in path/file names
Date: Fri, 23 Mar 2001 16:49:19 -0500

Hello,

I work with latest GNU make release 3.79.1 on Windows platform. Currently I
am trying to find workaround for unfortunate Windows convenience that allows
whitespaces in path/file names. In particular any reference to build in
variable $(CURDIR) seems to puzzle GNU make a great deal if there are
whitespaces in that variable. For example if the absolute path to the
location where the makefile and some other make process related files reside
contains the whitespace (e.g. "C:/SomeDir/Dir With Space/My_MakeLocation")
then the following statement within makefile will fails:

include $(CURDIR)/MyMake.in

Similarly if the file name of the file to be included contains whitespaces
(e.g. "My Make.in") none of the following will be successful:

EMPTY =
INC_NAME = $(EMPTY)My Make.in$(EMPTY)
include $(INC_NAME)

INC_NAME = 'My Make.in'
include $(INC_NAME)

INC_NAME = "My Make.in"
include $(INC_NAME)

Instead GNU make will complain that My and Make.in files cannot be found.

Please advise how to handle Windows' whitespace unfortunate innovation in
the GNU environment.

Piotr



reply via email to

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