[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"mixed implicit and normal rules"
From: |
Peter Fales |
Subject: |
"mixed implicit and normal rules" |
Date: |
Wed, 18 Aug 2010 07:17:30 -0500 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
A user has complained about Makefiles that broke when we updated from
make-8.31 to make-3.82, demonstrated by this sample Makefile:
====================================
define ShowTargets
echo "Hello World!"
endef
.PHONY : Help
Help %::
@$(ShowTargets)
====================================
As I understand it, this is intended to catch the unspecifed target and
print the help message. When make-3.81 is used by running "make" it prints
Hello World!
but 3.82 prints
Makefile:7: *** mixed implicit and normal rules. Stop.
I don't understand this well enough to know which is the correct behavior
or what the error message is trying to tell me. Is 3.82 working
as expected? Is there some more "correct" way to accomplish the same
result?
Thanks!
--
Peter Fales
Alcatel-Lucent
Member of Technical Staff
1960 Lucent Lane
Room: 9H-505
Naperville, IL 60566-7033
Email: address@hidden
Phone: 630 979 8031
- "mixed implicit and normal rules",
Peter Fales <=