Given this makefile:
all: setup
@echo wildcard value is $(wildcard xxx)
setup:
@mkdir -p xxx
I find that the $(wildcard xxx) evals to nothing if directory "xxx" does not
exist before invoking make. This surprises me. When are the variables in a
target's rules expanded, before making prerequisites or after? I would have
assumed after.
% mkdir xxx
% make -f x.mk
wildcard value is xxx
% rmdir xxx
% make -f x.mk
wildcard value is
% make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
- Steve
�
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make