Top "Gnu-make" questions

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

How do I specify in a Makefile.am script that I only want to compile object .o files?

I have a Makefile.am which will be responsible for building a final application binary: project/src/Makefile.am Also …

makefile automake gnu-make
GNU Make silent by default

Is it possible to suppress command echoing by default from within the Makefile? I know that running make in --silent …

makefile gnu-make
How to change current directory in GNU Make

I want to separate the directory with sources from the directory with targets. And it seems that changing the current …

makefile gnu-make guile
Calling make from within a makefile

I have a Makefile which works perfectly called from a new shell, i.e.: make -C /dir/ However, if I …

makefile gnu-make multiple-makefiles
Why use build tools like Autotools when we can just write our own makefiles?

Recently, I switched my development environment from Windows to Linux. So far, I have only used Visual Studio for C++ …

linux gnu-make autotools
tell if make is running on windows or linux

Is there a way to know in makefiles if GNU make is running on a linux OS or a windows …

makefile gnu-make os-agnostic os-detection
The difference between .mk file and Makefile

I've just begun to study Porting Android. And I come across a new type of file which is .mk file. …

makefile gnu-make android.mk
How to add custom targets in a qmake generated Makefile?

I use qmake to generate the Makefile, and that works well. However, sometimes I want to add more stuff to …

makefile gnu-make qmake
automake subdir-objects is disabled

I'm getting the below error with automake. I know you can put AUTOMAKE_OPTIONS = subdir-objects" at the top of Makefile.…

linux gnu-make automake
Change a make variable, and call another rule, from a recipe in same Makefile?

I have already seen How to manually call another target from a make target?, but my question is a bit …

makefile gnu-make