Top "Gnu-make" questions

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

Remove item from a Makefile variable?

I have a makefile, which includes several other makefiles, which in turn all add to a variable like this: VAR := …

variables makefile gnu-make
Escaping in makefile

I'm trying to do this in a makefile and it fails horribly: M_ARCH := $(shell g++ -dumpmachine | awk '{split($1,…

makefile g++ escaping gnu-make
Makefile to put object files from source files different directories into a single, separate directory?

I'm using UnitTest++ to allow me to create unit tests for some C++ code (that should build on Linux or …

object directory makefile gnu-make
How to get exit status of a shell command used in GNU Makefile?

I have a makefile rule in while I am executing a linux tool. I need to check the exit status …

linux shell makefile gnu-make
How to manually call another target from a make target?

I would like to have a makefile like this: cudaLib : # Create shared library with nvcc ocelotLib : # Create shared library for …

gnu-make
Makefile ifeq logical AND

I would like to check multiple conditions in an if loop of GNU make file. Here's an example: ifeq ($(TEST_…

unix makefile gnu-make gnu boolean-logic
How to recompile just a single kernel module?

Usually kernel source are stored in /usr/src/linux-2.6.x/. To avoid to recompile the entire kernel if I modify …

linux makefile linux-kernel gnu-make kernel-module
What do @, - and + do as prefixes to recipe lines in Make?

In the GNU Makefile manual, it mentions these prefixes. If .ONESHELL is provided, then only the first line of the …

makefile gnu-make
Implementing `make check` or `make test`

How can I implement a simple regression test framework with Make? (I’m using GNU Make, if that matters.) My …

testing makefile gnu-make regression-testing
What's the difference between := and = in Makefile?

For variable assignment in Make, I see := and = operator. What's the difference between them?

makefile gnu-make colon-equals