- #1
Eus
- 94
- 0
What is "::" in "all::" in a Makefile?
Hi Ho!
Executing GNU Make:
If Makefile only contains the following lines,
it will produce
If Makefile only contains the following lines,
it will still produce
But, if Makefile only contains the following lines,
it will produce
all: is just the usual way. all::: is an error.
all:: is the mystery that I don't know.
I know, all:| exists for order-only execution.
But, all:: is not documented in GNU Make texinfo.
Does any of you know what the use of all:: is?
Thank you.
Eus
Hi Ho!
Executing GNU Make:
If Makefile only contains the following lines,
Code:
all:
echo $@
it will produce
Code:
echo all
all
If Makefile only contains the following lines,
Code:
all::
echo $@
it will still produce
Code:
echo all
all
But, if Makefile only contains the following lines,
Code:
all:::
echo $@
it will produce
Code:
Makefile:1: *** missing target pattern. Stop.
all: is just the usual way. all::: is an error.
all:: is the mystery that I don't know.
I know, all:| exists for order-only execution.
But, all:: is not documented in GNU Make texinfo.
Does any of you know what the use of all:: is?
Thank you.
Eus