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

default-if-blank not working as expected w/ blank variable on the command line #85

Closed
bahmanm opened this issue Nov 10, 2023 · 0 comments · Fixed by #86
Closed

default-if-blank not working as expected w/ blank variable on the command line #85

bahmanm opened this issue Nov 10, 2023 · 0 comments · Fixed by #86
Assignees
Labels
🐞 bug Something isn't working

Comments

@bahmanm
Copy link
Owner

bahmanm commented Nov 10, 2023

Makefile

.PHONY : bmakelib/bmakelib.mk
include bmakelib/bmakelib.mk


.PHONY : a-target
a-target : bmakelib.default-if-blank( VAR1,foo )
a-target :
	@echo "VAR1 = '$(VAR1)'"

Expected

$ make VAR1= a-target
VAR1 = 'foo'

Actual

$ make VAR1= a-target
VAR1 = ''

Notes

$ make bmakelib.conf.default-if-blank.SILENT=no VAR1= a-target
Using default value 'foo' for variable 'VAR1'
VAR1 = ''
@bahmanm bahmanm added the 🐞 bug Something isn't working label Nov 10, 2023
@bahmanm bahmanm self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant