Top "Gnu-make" questions

This tag is for questions about `gmake`, the GNU version of the `make` utility to maintain and update programs.

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 …

makefile gnu-make
How to get current relative directory of your Makefile?

I have a several Makefiles in app specific directories like this: /project1/apps/app_typeA/Makefile /project1/apps/app_typeB/…

makefile gnu-make working-directory
How to install and use "make" in Windows?

I'm following the instructions of someone whose repository I cloned to my machine. What I want is simple: to be …

makefile windows-8 windows-10 gnu-make
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 = …

makefile gnu-make
How do I write the 'cd' command in a makefile?

For example, I have something like this in my makefile: all: cd some_directory But when I typed make I …

makefile gnu-make
How can I configure my makefile for debug and release builds?

I have the following makefile for my project, and I'd like to configure it for release and debug builds. In …

makefile gnu-make
Using CMake with GNU Make: How can I see the exact commands?

I use CMake with GNU Make and would like to see all commands exactly (for example how the compiler is …

cmake gnu-make
Define make variable at rule execution time

In my GNUmakefile, I would like to have a rule that uses a temporary directory. For example: out.tar: TMP := $(…

makefile gnu-make
How to use GNU Make on Windows?

I installed MinGW and MSYS, added C:\MinGW\bin to PATH but I still can't run Makefile on Windows' cmd. …

windows makefile gnu-make cmd
How to call Makefile from another Makefile?

I'm getting some unexpected results calling one makefile from another. I have two makefiles, one called /path/to/project/makefile …

makefile gnu-make