cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

nmake with directories containing spaces

Newbie

nmake with directories containing spaces

Hello Programming Gurus,

I am trying to use the make files supplied by PTC with nmake on Windows.
Because there are about 20 make files, I would prefer to edit the make
files rather than create the build instructions in the IDE.

The default installation directory for Pro/E now is in "c:\Program Files".

I would like to say:
PROTOOL_SRC = c:\Program Files\proewf
but the space in "Program Files" ends the macro. Neither using quotes
(") or a caret (^) works. Any ideas?

TIA,
Bob

--
Robert A. Monat
Jerand Technical Services, Inc.
http://www.jerand.com
Phone: 317-875-6087 FAX: 317-875-6612 Tollfree(US)888-4JERAND
2 REPLIES 2

Re: nmake with directories containing spaces

--- "Robert (Bob) A. Monat" <bob@jerand.com> wrote:

> Hello Programming Gurus,
>
> I am trying to use the make files supplied by PTC with nmake on
> Windows.
> Because there are about 20 make files, I would prefer to edit the
> make
> files rather than create the build instructions in the IDE.
>
> The default installation directory for Pro/E now is in "c:\Program
> Files".
>
> I would like to say:
> PROTOOL_SRC = c:\Program Files\proewf
> but the space in "Program Files" ends the macro. Neither using quotes
>
> (") or a caret (^) works. Any ideas?
>
> TIA,
> Bob

Bob,

Haven't tried it yet, but since you must "escape" backslashes w/
another backslash (\\) then try escaping the spaces as well:

C:\\Program\ Files\\proewf



=====
Michael L. Fussy
Timeous Systems
(407) 291-9270 Tel
(407) 291-9269 Fax

Re: nmake with directories containing spaces

Bob,

The workaround I used was to define the windows program directory using its
'DOS-name' (Progra~1 on my system - not sure if this is universal). My
makefiles contain a block that resembles:

WINPROG_DIR = C:/Progra~1
#PROVER = 2000i2
#PROVER = 2001
PROVER = Wildfire

PROTOOL_SRC = $(WINPROG_DIR)/proe$(PROVER)/protoolkit
PROTOOL_SYS = $(PROTOOL_SRC)/$(PRO_MACHINE_TYPE)
PRODEV_SRC = $(WINPROG_DIR/proe$(PROVER)/protoolkit
PRODEV_SYS = $(PRODEV_SRC)/$(PRO_MACHINE_TYPE)

This should solve the problem you have.

Best,
Michael


Robert (Bob) A. Monat wrote:
> Hello Programming Gurus,
>
> I am trying to use the make files supplied by PTC with nmake on Windows.
> Because there are about 20 make files, I would prefer to edit the make
> files rather than create the build instructions in the IDE.
>
> The default installation directory for Pro/E now is in "c:\Program Files".
>
> I would like to say:
> PROTOOL_SRC = c:\Program Files\proewf
> but the space in "Program Files" ends the macro. Neither using quotes
> (") or a caret (^) works. Any ideas?


--