On Thu, 2016-04-21 at 08:29 +0100, Tristan Wibberley wrote:
> x86-64 x86 armel: %=build/%/main.o: main.c ; true
> factors :: path=subst : prerequisites ; recipe
Almost all the syntax you suggest that uses "=" is not possible, because
it already has a well-defined meaning: it defines target-specif
GNU make is a tool which controls the generation of executables and
other non-source files of a program from the program's source files.
You can learn more at: http://www.gnu.org/software/make/
---
TESTSRC depends on $@, an automatic variable set at the time of recipe
execution. ifneq by contrast runs earlier.
https://www.gnu.org/software/make/manual/html_node/Conditionals.html#Conditionals
explains "Conditionals control what make actually “sees” in the makefile, so
they cannot be used
Hi,
I'm not sure but I think I found a bug in ifeq and ifneq:
My project structure is like this:
$ tree
.
├── Makefile
├── subprojA
│ ├── src.cpp
│ ├── Makefile
│ └── test.cpp
└── subprojA
├── src.cpp
├── Makefile
└── test.cpp
The upper Makefile should run `make test` for each