How to print out a variable in makefile

In my makefile, I have a variable ‘NDK_PROJECT_PATH’, my question is how can I print it out when it compiles? I read Make file echo displaying “$PATH” string and I tried: @echo $(NDK_PROJECT_PATH) @echo $(value NDK_PROJECT_PATH) Both gives me “build-local.mk:102: *** missing separator. Stop.” Any one knows why it is not working for me? 15 … Read more

What’s the opposite of ‘make install’, i.e. how do you uninstall a library in Linux?

While running ./configure –prefix=/mingw on a MinGW/MSYS system for a library I had previously run ‘./configure –prefix=/mingw && make && make install’ I came across this message: WARNING: A version of the Vamp plugin SDK is already installed. Expect worries and sorrows if you install a new version without removing the old one first. (Continuing) … Read more

Passing additional variables from command line to make

Can I pass variables to a GNU Makefile as command line arguments? In other words, I want to pass some arguments which will eventually become variables in the Makefile. 8 s 8 You have several options to set up variables from outside your makefile: From environment – each environment variable is transformed into a makefile … Read more

What is the difference between the GNU Makefile variable assignments =, ?=, := and +=?

Can anybody give a clear explanation of how variable assignment really works in Makefiles. What is the difference between : VARIABLE = value VARIABLE ?= value VARIABLE := value VARIABLE += value I have read the section in GNU Make’s manual, but it still doesn’t make sense to me. 6 s 6 Lazy Set VARIABLE … Read more