[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
refering to order-only prerequisite
From: |
Warlich, Christof |
Subject: |
refering to order-only prerequisite |
Date: |
Wed, 11 Jan 2017 13:20:21 +0000 |
Hi,
please consider the following example Makefile:
all: | some_order_only_prerequisite
echo $<
some_order_only_prerequisite:
touch $@
I would have expected that running make would always print
"some_order_only_prerequisite", but obviously, $< does not refer to the first
dependency if it is order-only.
Is this intended behavior, and if so, why?
Regards,
Chris
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- refering to order-only prerequisite,
Warlich, Christof <=