Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Tabs for project sub-makefiles #157

Open
Sigmanificient opened this issue Dec 17, 2023 · 2 comments
Open

Suggestion: Tabs for project sub-makefiles #157

Sigmanificient opened this issue Dec 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Sigmanificient
Copy link
Contributor

Sigmanificient commented Dec 17, 2023

This is a suggestion to handle nicely projects with multiple sub-Makefiles.

A small section at the right (below history) could show different Makefiles of a project.
It will find a Makefile from the current path and search for others in the subdirectories.
It could also display mk files at the very end of the list.

You could enter this list to select which Makefile to use/preview.
For a folder that doesn't have any Makefile, it could also search within the sub-folders
and preview the nearest sub-Makefile automatically.

For instance, I have a project with multiple Makefiles:

.
├── common.mk
├── graphics
│   └── Makefile
├── Makefile
├── quell
│   └── Makefile
└── utilities.mk

The section could show something like the following

┌─ Makefiles ─────────┐
│ >░Makefile░░░░░░░░░ │ 
│   graphics/Makefile │ 
│   quell/Makefile    │ 
│   commons.mk        │ 
│   utilities.mk      │ 
└─────────────────────┘

When choosing the target to run, it will use the correct commands according to the context:

  • make rule as usual
  • make -C directory rule for subdirs
  • make -f some.mk rule for mk files
    even with combinations of both make -C directory -f some.mk rule
@kyu08
Copy link
Owner

kyu08 commented Jan 1, 2024

I'm sorry for the late reply. I haven't have enough time for recent few days.

Thank you for nice suggestion! Also, your example made your idea quit understandable.
This is nice idea for handling makefiles in some directories! I think this feature is useful too.
I will deal with this in some release.

@kyu08 kyu08 added the enhancement New feature or request label Jan 1, 2024
@kyu08 kyu08 added this to the Within few release milestone Jan 1, 2024
@JaKXz
Copy link

JaKXz commented Oct 30, 2024

This is a cool project, and so I just wanted to add to this suggestion:

I would love if this actually was able to resolve all the wildcard declarations in my root Makefile so that I could fuzzy search across all the makefiles in my project, e.g.

js/%:
	@$(MAKE) --no-print-directory -C js $@

Which in the js directory has further subdirectories and definitions for projects like this, so ideally I can fuzzy search a string like js project_name build and that would resolve to make js/project_name/build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants