~/repos/msdk/Examples/MAX78000/Hello_World (feat/query*) » make query QUERY_VAR=TARGET
Loaded project.mk
TARGET=MAX78000
The output must still be parsed, since other Makefiles might print extra $(info) statements. This could be improved in a future PR that implements some sort of log-level mechanism for suppressing all $(info) output.
Pull Request Template
Description
Add the
make query
target. This allows IDEs and scripts to query the value of a specific build variable for a project by also settingQUERY_VARIABLE
.Useful for https://github.com/Analog-Devices-MSDK/MSDKGen/commit/17017774f9e7945a07e09f93f5ef0485287bc2e0
Ex:
The output must still be parsed, since other Makefiles might print extra
$(info)
statements. This could be improved in a future PR that implements some sort of log-level mechanism for suppressing all$(info)
output.