Skip to main content
AKali
Associate
May 13, 2024
Question

How to avoid absolute path during automakefile generation?

  • May 13, 2024
  • 1 reply
  • 1394 views

Hi, I want to avoid my absolute path of PC during automakefile generation. Actually absolute path available on subdir.mk during build. How does control mk generation to generate subdir.mk with relative path to central makefile?
Thanks in advance, Anton.

    This topic has been closed for replies.

    1 reply

    Pavel A.
    May 13, 2024

    Is this question about the "managed" Eclipse CDT builder makefiles? With the internal builder these makefiles are not  generated at all and do not distract you. Eclipse has built-in variables for the project directory (location of .project) and the workspace directory, you can use these in definition of include paths etc.  More custom variables can be defined in the project settings, "build variables". So your project can be completely free of absolute paths.