Hello Helmut,
Thanks for the help. After I did some investigate I have discovered
that my problem is when I try to build a target I can't see the modify path.
This is the area of the make file that I am concerned with.
!message
!message before ECHO $(PATH)
!message
Types.cpp Types.h: Types.idl
-del Types.cpp Types.h
echo %PATH%
$(IDL) -I$(top_srcdir)/idl --no-skeletons Types.idl
This is the output when I run the make.
---------------------------------------------------------------------
D:\Borland-Path\cpp\ob\test\types>make -f Makefile.bcc
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
before ECHO
..\..\..\jtc\lib;..\..\..\ob\lib;C:\jdk1.3.1_05\bin;F:\Obe-tfp\OBEE_shared_d
ebug_install\OBE\2.2\c\lib;F:\Obe-2.2-rc4\OBEE_shared_debug_install\OBE\2.2\bin;
F:\trans-test\ftp\OBEE-2.2.0-bin-win32\OBE\2.2\bin;C:\texmf\miktex\bin;C:\Perl\b
in;c:\utils;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\vim\vim61
;C:\DevStudio\VC98\Bin;c:\vim\vim61;C:\Program
Files\Hummingbird\Connectivity\7.
10\Accessories\;C:\Program
Files\Hummingbird\Connectivity\7.10\NFSClient;C:\Prog
ram Files\Rational\Clearcase\bin;C:\Program
Files\Rational\common;F:\borland\bcc
55\bin;F:\Borland\BCC55\Include;
del Types.cpp Types.h
Could Not Find D:\Borland-Path\cpp\ob\test\types\Types.cpp
echo %PATH%
$(JTC_DIR)\lib;$(OB_DIR)\lib;C:\jdk1.3.1_05\bin;F:\Obe-tfp\OBEE_shared_debug_ins
tall\OBE\2.2\c\lib;F:\Obe-2.2-rc4\OBEE_shared_debug_install\OBE\2.2\bin;F:\trans
-test\ftp\OBEE-2.2.0-bin-win32\OBE\2.2\bin;C:\texmf\miktex\bin;C:\Perl\bin;c:\ut
ils;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\vim\vim61;C:\DevS
tudio\VC98\Bin;c:\vim\vim61;C:\Program
Files\Hummingbird\Connectivity\7.10\Acces
sories\;C:\Program
Files\Hummingbird\Connectivity\7.10\NFSClient;C:\Program File
s\Rational\Clearcase\bin;C:\Program
Files\Rational\common;F:\borland\bcc55\bin;F
:\Borland\BCC55\Include;
..\..\..\ob\bin\idl.exe -I..\../idl --no-skeletons Types.idl
---------------------------------------------------------------------------
As you can tell the PATH environment variable seems to be modified since
I can see it displayed correctly when I do the !message BEFORE ECHO
$(PATH). Then when I try to build my target it reverts to a state where
the PATH is still looking for the $(JTC_DIR) and $(OB_DIR). I can tell
that since the display from the ECHO %PATH%. The computer then sends me
a popup box saying that it can't locate a file which is in the jtc\lib
directory.
Does anybody know a way I fix this problem ?
Thanks
Matthew
Helmut Giese wrote:
Quote
Sorry,
but I found the description still a bit confusing :) Why not reduce
your makefile to a couple of lines showing the essentials (and the
failures) ?
Anyway, from what I think I understood I constructed the attached
makefile. I order for it to work, you need
- a directory c:\tmp\x and
- a file dummy.txt in this directory (which should contain some lines
of text)
Then if you copy the attached file as 'makefile' and run make, it
should print out the content of dummy.txt twice - it does for me.
HTH
Helmut Giese
PS: Using 'echo' did produce the result you described - but then, you
are not primarily interested in 'echo', are you?
------------- makefile ----------------
top_dir = c:\tmp
JTC_DIR = $(top_dir)\x
!message Path = $(PATH)
!message JTC_DIR = $(JTC_DIR)
PATH = $(JTC_DIR)
!message PATH has changed
!message Path = $(PATH)
# Let's define a file: Once just the name, then the full path
MyFile = dummy.txt
MyFileFP = $(PATH)\$(MyFile)
# Let's try to access MyFile (both versions)
target:
type $(PATH)\$(MyFile)
echo .
type $(MyFileFP)
{smallsort}