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 copy a directory in a Makefile?

I have a directory images/ that I want to copy to build/images/ from within a Makefile. The directory might …

directory makefile gnu-make
How to trace Makefile targets for troubleshooting?

We have a long and complicated Makefile in our build system. Is there a good way to trace exactly which …

makefile gnu-make
Proper method for wildcard targets in GNU Make

I am trying to write a Makefile with my source and object files separated and I can't seem to figure …

makefile wildcard gnu-make target
GNU makefile how to and when to quote strings

How and when do I quote a string in a make file? What is best practice? Is the following the …

makefile gnu-make
How to speed up Compile Time of my CMake enabled C++ Project?

I came across several SO questions regarding specific aspects of improving the turn-around time of CMake enabled C++ projects lately (…

performance compilation cmake gnu-make nmake
Parallel makefile requires dependency ordering

I have the following piece of makefile: CXXFLAGS = -std=c++0x -Wall SRCS = test1.cpp test2.cpp OBJDIR = object OBJS = $(…

makefile gnu-make
What is the Makefile Target `.c.o` for?

Someone recently mentioned the target .c.o in Makefiles for cross compatability, but I fail to understand its purpose. Can …

makefile gnu-make
GNU make cheat-sheet

I'm learning to work with GNU make and I'm reading the manual (which is very good) but I'm missing a …

gnu-make
Convert Cygwin path to Windows path in a makefile

How can I convert a Cygwin style path ( /cygdrive/c/foo/bar ) to Windows style ( C:/foo/bar ) (yes, with / …

makefile cygwin gnu-make
What are double-colon rules in a Makefile for?

Section 4.13 of the GNU Make manual describes the so-called double-colon rules: Double-colon rules are rules written with ‘::’ instead of ‘:’ after …

makefile gnu-make