Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » makefile-working with envirnoment variables(how to prevent visual replacement of path)
makefile-working with envirnoment variables [message #980899] Mon, 12 November 2012 02:43 Go to next message
Celine Chia is currently offline Celine ChiaFriend
Messages: 1
Registered: November 2012
Junior Member
Hi,

I have written a makefile. This makefile is to be checked into svn. I used environment variables for my project directory path so that different computers can run the makefile without having to make changes to it.

for example:
PRJ_ROOT_DIR := $(REF_DIR)/projectName/trunk/Temp
where environment variable REF_DIR is C:/Users/myName/Desktop.

However, by just building the project, makefile automatically changed to:
PRJ_ROOT_DIR := C:/Users/myName/Desktop/projectName/trunk/Temp

This shows up in SVN that makefile has been modified.

How do i do it such that makefile remains as
PRJ_ROOT_DIR := $(REF_DIR)/projectName/trunk/Temp? Where changes is done in the background and not showed up on the built makefile so that SVN will not detect the change?

Thank you.
Re: makefile-working with envirnoment variables [message #986528 is a reply to message #980899] Tue, 20 November 2012 18:12 Go to previous message
Robert Beers is currently offline Robert BeersFriend
Messages: 1
Registered: November 2012
Junior Member
Did you try quoting the environment variable part,
maybe that will preserve it as a literal string
until the make command dereferences it?

PRJ_ROOT_DIR := "$(REF_DIR)"/projectName/trunk/Temp

-Bob
Previous Topic:Debugging Existing Opensource Project
Next Topic:gloabal variable
Goto Forum:
  


Current Time: Thu Mar 28 13:23:04 GMT 2024

Powered by FUDForum. Page generated in 0.02490 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top