Yes, it is this location that changes the destination of the file, except that the directory separator is /
and not \
.
If there is a directory with the same name as the output file, you may need other settings like putting the .exe at the end of the name in the running configuration ( Propriedades -> Executar -> Comando Executar
).
The documentation of what it means is in the Makefile
file, or at least clues to those that are not exactly the same as those listed. In the project, it is located in a folder called Important Files or Important Files in the English version.
-
CND_DISTDIR : distribution directory, where the final files will be;
-
CND_CONF : Does not say, but is the configuration used, it seems equivalent to
${CONF}
: It has value Debug
, Release
or other name you create in the project properties;
-
CND_PLATFORM : the target platform, so vi is the name of the compiler (defined by you) and the host operating system that is building the program. It can be
Cygwin_4.x-Windows
, or Arduino-Windows
, Arduino-Linux
, AVR-Linux
, etc.
You can also, without changing the program destination, copy it to the location you want by adding the command in the .build-post
section of Makefile
. If you want to run / debug in the new location change the settings of the Run and Debug commands. Example: after the lines
.build-post: .build-impl
# Add your post 'build' code here...
On Windows, add the line:
${CP} ${CND_ARTIFACT_PATH_${CONF}}.exe ${USERPROFILE}/Desktop/
On Linux, the line is:
${CP} ${CND_ARTIFACT_PATH_${CONF}} ${HOME}/Desktop/
Important : This line starts with a [Tab]
character, otherwise it does not work.
Important 2 : ${USERPROFILE}/Desktop/
does not always work. For example: In Windows I changed the folder from my desktop, and this path does not copy the file to my desktop. (Because I changed it's another story) In Linux, the environment I use and does not use the Desktop folder.