Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

ALL CORES: Moving executable from src/ to the mpas root. #9

Merged
merged 3 commits into from
May 2, 2013

Conversation

douglasjacobsen
Copy link
Member

$(CORE)_model.exe use to get created in src/ and a symbolic link was
placed in the root mpas directory. This gets confusing on some machines
where the link looks like an executable, but you can't actually copy the
link.

The executable is moved to the MPAS root after it's build rather than
linking it.

Also, the .exe is removed from the executable.

This commit fixes #2

$(CORE)_model.exe use to get created in src/ and a symbolic link was
placed in the root mpas directory. This gets confusing on some machines
where the link looks like an executable, but you can't actually copy the
link.

The executable is moved to the MPAS root after it's build rather than
linking it.

Also, the .exe is removed from the executable.
@ghost ghost assigned mgduda May 1, 2013
@mgduda
Copy link
Contributor

mgduda commented May 2, 2013

The clean targets need to be fixed as well in the Makefiles.

The clean targets were not updated previously to clean the proper files
(${CORE}_model in the root directory).

This commit fixes this issue.
@douglasjacobsen
Copy link
Member Author

The latest commit (c840b3d) should fix the clean targets.

@mgduda
Copy link
Contributor

mgduda commented May 2, 2013

The logic for moving the executable to the top-level directory is such that, if modifications to code are made and the model is recompiled, the new executable will stay in the src/ directory, leaving the old executable at the top-level.

If the makefile sees src/${CORE}_model now at the end of the build, it
will move it to ./${CORE}_model
@douglasjacobsen
Copy link
Member Author

Take 2.

I changed the logic to only attempt to move it, if the executable exists. But this should also overwrite ${CORE}_model in the top-level if it was rebuilt.

@mgduda
Copy link
Contributor

mgduda commented May 2, 2013

Looks good now; I'll merge the pull request.

mgduda added a commit that referenced this pull request May 2, 2013
ALL CORES: Moving executable from src/ to the mpas root.
@mgduda mgduda merged commit c8c3116 into MPAS-Dev:develop May 2, 2013
@douglasjacobsen douglasjacobsen deleted the all/makefile_cleanup branch May 3, 2013 02:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

location of executable
2 participants