Category "gnu-make"

gnumake how to do a logical AND ifeq and ifdef

In gnumake, is it possible to do a logical and involving an ifeq and a ifdef, something like the following ? ifeq ("$(NAME)","JOHN") $(and ifdef SOME_VAR) // do

@echo in Makefile always causes error " *** missing separator. Stop."

I put @echo "============= $(TOOLPREFIX) =================" in line 34 of Makefile of xv6 used by many OS courses, in hope of printing out the value of variabl

how to find the dependencies of a source code?

Let say I have a simple c-library project, the layout is as follows - src/ - square_root.c - log.c - power.c - newton_method.c - include

Is it possible to execute all make commands that match a pattern?

Suppose I define several make PHONY commands: auto-build-foo auto-build-bar auto-build-biz ... auto-build-inf And I can observe them all with the following key

Create a Makefile to compile all .c files in a folder/subfolder and ship the binaries elsewhere

I am currently studying K&R and I would like to create a Makefile in order to automate the compiling process. I have a directory structured as follows : k-r

Where is make on msys2/mingw-w64?

On msys2, I installed the mingw-w64 toolchain. I can run gcc from MINGW64 shell, but not make. pacman claims mingw-w64-x86_64-make is installed. What gives?

How to install PgBouncer on Windows 7 (x64)

I am attempting to install PgBouncer on my computer with no success. In the installation page, im told that PgBouncer has two dependencies GNU Make 3.81+ and

How to install PgBouncer on Windows 7 (x64)

I am attempting to install PgBouncer on my computer with no success. In the installation page, im told that PgBouncer has two dependencies GNU Make 3.81+ and

How to install and use "make" in Windows?

I'm following the instructions of someone whose repository I cloned to my machine. I want to use the make command as part of setting up the code environment, bu

How do I get a variable into a $(shell) command in a makefile?

❯ make --version GNU Make 3.81 ❯ bash --version GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin18) How can I pass a variable from inside