[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make rule order
From: |
Ian Lynagh |
Subject: |
make rule order |
Date: |
Wed, 28 Jul 2010 14:45:42 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Hi all,
Running "make" (3.82) with the Makefile below prints:
x
foo rule 1
bar rule 2
but I would expect make to use either the first rule in both cases, or
the second rule in both cases. Is this a bug? If so, what is the right
behaviour? If not, what is the reason that the first and second rules
are chosen respectively?
#####################################
FOO=
.SECONDEXPANSION:
default: foo bar
f%: $$(info x)
@echo foo rule 1
f%: $$(info y)
@echo foo rule 2
b%: $$(FOO)
@echo bar rule 1
b%: $$(FOO)
@echo bar rule 2
#####################################
Thanks
Ian
- make rule order,
Ian Lynagh <=