Working with environment variables in a Makefile on Windows

I wrote a make file. This makefile must be checked in SVN. I used environment variables for my path to the project directory so that different computers could run the make file without the need to make changes to it.

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

However, simply by creating a project, the makefile will automatically change to: PRJ_ROOT_DIR := C:/Users/myName/Desktop/projectName/trunk/Temp

This shows in SVN that the makefile has been changed.

How to do this so that the makefile remains the same PRJ_ROOT_DIR := $(REF_DIR)/projectName/trunk/Temp ? Where are the changes done in the background and not shown in the built-in make file so that SVN doesn't detect the changes?

+4
source share
1 answer

I have found the answer; makefile automatically generated. Therefore, modifying the created make file does not help.

I noted eclipse because compilation is done in an eclipse environment. I thought there might be some settings that I might need to change in this environment.

+1
source

Source: https://habr.com/ru/post/1445417/


All Articles