Top "Gnu-make" questions

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

Disable make builtin rules and variables from inside the make file

I want to disable builtin rules and variables as per passing the -r and -R options to GNU make, from …

build makefile gnu gnu-make
read input variable in makefile and set variable upon it`s name

I have a makefile where I want to read module name from input and then make directory based on it`…

makefile gnu-make
Compile all C files in a directory into separate programs

Is there a way using GNU Make of compiling all of the C files in a directory into separate programs, …

makefile gnu-make
Makefile: Filter out strings containing a character

I'm trying to filter out strings that contain a particular character, but it doesn't work. I guess make does not …

makefile gnu-make
How do I split a string in make?

I need to take a parameter in my Makefile that consists of a host identifier in the form host[:port] …

makefile gnu-make
Makefile rule that depends on all files under a directory (including within subdirectories)

One rule in my Makefile zips an entire directory (res/) into a ZIP file. Obviously, this rule needs to execute …

makefile wildcard gnu-make glob
variable target in a makefile

I am trying to compile set of targets. However it only seems to do the first one. Below is a …

makefile gnu-make
Difference between Cmake, gnu make and manually compiling

I'm new to programming so this is a more of a abstract question than a technical one. I've been using …

cmake gnu-make
How to create a directory in a makefile when mkdir -p is not available?

I have a makefile which does the usual directory creation: $(Release_target_OBJDIR)/%.o: %.cpp mkdir -p $(dir $@) $(COMPILE.cpp) $&…

gnu-make mkdir scratchbox
How to have GNU make explicitly test for failure?

After years of not using make, I find myself needing it again, the gnu version now. I'm pretty sure I …

makefile gnu-make