bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Nested calls of make in secondary expansions cause "command not found"


From: Robert Prije
Subject: Nested calls of make in secondary expansions cause "command not found"
Date: Fri, 31 May 2019 11:50:06 +1000

The following Makefile:

foo:
$$(make bar)

bar:
@echo "echo bar"

(tabs seem to have been lost. Please insert as necessary)

results in the following error:

$ make foo
$(make bar)
/bin/sh: make[1]:: command not found
make: *** [Makefile:2: foo] Error 127

strace confirms that make really is trying to find a file named "make[1]" including the "[1]" suffix.

The version of make I am running is 4.2.1 built for x86_64-pc-linux-gnu. The OS I am running is NixOS 18.09.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]