[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
duplicated definition for a target
From: |
Lin George |
Subject: |
duplicated definition for a target |
Date: |
Wed, 3 May 2006 00:16:35 -0700 (PDT) |
Hello everyone,
I thought duplicated definition for a target is not
correct. But it seems that it is ok to define a target
more than once. See this sample Makefile (I defined
Foo twice),
--------------------
Goo:
@echo "Goo"
Foo: Goo
Foo:
@echo "Foo"
--------------------
when I execute make Foo, the output is,
--------------------
Goo
Foo
--------------------
So, my question is that. Is it ok to define a target
more than once? Always ok or under some conditions?
thanks in advance,
George
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- duplicated definition for a target,
Lin George <=