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

Incorporate Makefile debugging tool #93

Open
ramirezfranciscof opened this issue Apr 17, 2017 · 0 comments
Open

Incorporate Makefile debugging tool #93

ramirezfranciscof opened this issue Apr 17, 2017 · 0 comments

Comments

@ramirezfranciscof
Copy link
Collaborator

ramirezfranciscof commented Apr 17, 2017

Add the following code the next time modifications to makefiles are introduced; it will help debug makefile problems.

print-%:
	@echo '$*=$($*)'
	@echo '  origin = $(origin $*)'
	@echo '  flavor = $(flavor $*)'
	@echo '   value = $(value  $*)'

print-all: ; $(foreach n,$(sort $(.VARIABLES)),echo ‘$n=$($n)’;)

Reference: blog post and comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants