Hello,
I am a reasonably long time user of sublime text and have been very very happy with it. Its fast, lightweight and does not distract you from the work at hand. And more often than not, a quick google search will return any plugins you might need.
I have run into a requirement that might be unique to my situation or might be helpful for others like me.
I am working on a C/C++ project that is based on makefiles.
The following is a sample directory structure.
test
├── LICENSE
├── README.md
├── libopencm3
│ ├── COPYING.GPL3
│ ├── COPYING.LGPL3
│ ├── HACKING
│ ├── HACKING_COMMON_DOC
│ ├── Makefile
│ ├── README.md
│ ├── doc
│ ├── include
│ ├── ld
│ ├── lib
│ ├── locm3.sublime-project
│ ├── mk
│ ├── scripts
│ └── tests
├── my-common-code
│ ├── api.c
│ └── api.h
├── rules.mk
├── test1
│ ├── Makefile
│ ├── awesomesauce.elf
│ ├── bin
│ └── my-project.c
├── test2
│ ├── Makefile
│ ├── awesomesauce.elf
│ └── my-project.c
├── untitled.sublime-project
└── untitled.sublime-workspace
The folders test1 and test2, say, contain the application code. They have a makefile in that directory. The local makefiles include a rules.mk file present in the root directory level. The make targets vary between test1 and test2.
Is there a plugin or any way where sublime can parse the makefiles (the local and root directory level) and present the targets to run.
I found one plugin (makecommands)
https://packagecontrol.io/packages/MakeCommands
but I was not able to make it work entirely, I can see the local makefile targets but never the root directory targets. Since the local makefile targets depended on the root level makefile, it did not work.
I would be really thankful if the more experienced folks can guide me how to solve this. Either help me solve how to make the plugin makecommands work or is there an easier way to get ST3 to show the targets based on the makefile.
I am not a hot shot, experienced developer and my experience is limited to C/C++ mostly and that too on the embedded side. I am willing to put in the time to develop something if anyone can guide me how to do so.
Thank you in advance!!