I am attempting to get CLion to work with previous Makefile projects. I was able to get one of them to work, but it took over 2 days (on and off) and I really have no clue exactly what all the steps I took were. Been really happy with the tool so far.
So, I tried opening a second project, and am making no headway. The steps I have taken are:
From the flash screen: select Open, select the Makefile, select open as file
Select Makefile in the 'Makefile' project (I assume it is a project name, but why not the directory name?).
File -> load makefile project
I now have another Makefile showing in the list. The first is in my project directory, the second is /tmp/Makefile. What is this for?
Select the project directory.
Settings -> build, execution, deployment -> Makefile, and change build directory to '.' (not building into 'build'), and change build target to 'all' (not 'check'). OK
Build -> rebuild project will now rebuild the project.
File -> Close Project.
It now looks like I have a project named Makefile, living in /tmp/Makefile.
The first project I worked with I managed to get to show up with the actual project directory name, and I seem to be able to get into / out of the project with no problems. What am I doing wrong with this one? Something is obviously not right, but I have no clue where to go. Is there a document somewhere that covers this? I have found this: https://blog.jetbrains.com/clion/2020/06/makefile-projects-in-clion/, but it is not really helping much.
Any help appreciated.