...
EZ> It would be more convincing to have a proof that Bash is called to
EZ> run the command where the problem happens. Perhaps the quote
EZ> style changes Make's decision about this.
EZ> If Bash is indeed called, I'd guess this is some bug between Make
EZ> and Bash.
I'm not sure how to prove that bash is being called if indeed Make is
choosing based on quote style. This is the rule that fails for me.
-andre.
DIRS = foo bar
all:
if [ "x$(DIRS)" != x ]; then \
targets="$(MAKECMDGOALS)"; \
if [ "x$$targets" = x ]; then \
targets=all; \
fi; \
for target in $$targets; do \
for dir in $(DIRS) NoSuchFile; do \
if [ $$dir != NoSuchFile ]; then \
if [ x$(subdirTrace) != x ]; then \
echo; echo Make $$target $$dir; echo; \
fi; \
(cd $$dir && $(MAKE) $$target); \
fi; \
done; \
done; \
fi