%% Edson Seabra <[EMAIL PROTECTED]> writes: es> I'm trying to write a custom function that will abort the make if there es> are variables not defined in the list passed as parameter 1.
es> $(call check_undefined_vars,<var_list1>) es> But I have to write this: es> VARS_NOT_DEFINED := es> $(call check_undefined_vars, <var_list>) es> ifneq ($(words $(VARS_NOT_DEFINED)),0) es> $(error Variable(s): '$(VARS_NOT_DEFINED)' must be defined.) es> endif es> Because if I move the if with the call to error inside the es> function "check_undefined_vars" the make aborts always it does not es> matter if the variables in <var_list> are defined or not. You can't use ifdef inside the call: those are preprocessor conditionals, like #ifdef etc. in C. You can use the $(if ...) function there, though. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
