List Info

Thread: How to deal with spaces within target path?




How to deal with spaces within target path?
user name
2006-07-29 00:52:53
%% anachmanhotmail.com writes:

  a> This is GNU Make 3.80 on Mac OSX. I'm running into
a problem where
  a> spaces in a target name within the makefile are
causing it to be
  a> interpreted as separate targets. Using the typical
solution of
  a> putting quotes around the path doesn't seem to work
within the
  a> makefile. Does anyone know of a way to specify that
spaces should
  a> be treated as part of the path name? Here is the
offending line in
  a> the makefile: $%.N.cln : %.asm $;
$

In general there's really no completely bullet-proof way to
use
pathnames with whitespace in them.  Your best bet is to
avoid them
altogether.


However, in some situations you can escape whitespace with a
backslash.

-- 
------------------------------------------------------------
-------------------
 Paul D. Smith <psmithgnu.org>          Find
some GNU make tips at:
 http://www.gnu.org        
             http://make.paulandlesl
ey.org
 "Please remain calm...I may be mad, but I am a
professional." --Mad Scientist
_______________________________________________
help-gnu-utils mailing list
help-gnu-utilsgnu.org

http://lists.gnu.org/mailman/listinfo/help-gnu-utils
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )