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

Use targets/variables w/o bmakelib. prefix #80

Open
bahmanm opened this issue Sep 10, 2023 · 0 comments
Open

Use targets/variables w/o bmakelib. prefix #80

bahmanm opened this issue Sep 10, 2023 · 0 comments
Labels
💡 idea Needs investigation/research
Milestone

Comments

@bahmanm
Copy link
Owner

bahmanm commented Sep 10, 2023

Currently all targets/variables are prefixed w/ bmakelib..
For example:

foo : bmakelib.error-if-blank(VAR1)
foo : 
	...

To reduce clutter and save some a few bytes, it should be possible to omit the prefix for all targets/variables if you ask for it; much in the same vein as bmakelib.conf.logged.convenience-target

For example:

bmakelib.conf.convenience-targets := yes
include bmakelib/bmakelib.mk

foo : error-if-blank(VAR1)
foo : 
	...

NB: To ensure backward compat and respect user's choice, this should be an opt-in, ie the default behaviour should be bmakelib.conf.convenience-targets := no.

@bahmanm bahmanm added ✅ enhancement New feature or request 💡 idea Needs investigation/research labels Sep 10, 2023
@bahmanm bahmanm added ✅ enhancement New feature or request and removed ✅ enhancement New feature or request labels Sep 30, 2023
@bahmanm bahmanm removed the ✅ enhancement New feature or request label Oct 22, 2023
@bahmanm bahmanm added this to the v0.9.0 milestone Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 idea Needs investigation/research
Projects
None yet
Development

No branches or pull requests

1 participant