[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ifdef is always eval'ed
From: |
gaoyong pan |
Subject: |
ifdef is always eval'ed |
Date: |
Mon, 28 Feb 2011 19:12:51 +0800 |
I don't define variable B for below makefile, but it always gets
printed and eval'ed with below outputs, why I got this expected
behavior?
B is defined
template demo
===============
A := helloA
define change
ifdef B
$(info B is defined)
endif
endef
$(eval $(change))
default:
$(info template demo)
--
Best Regards
Linux user #384184
@ http://counter.li.org/
- ifdef is always eval'ed,
gaoyong pan <=