On 10/22/07, Venkatraman Krishnan <[EMAIL PROTECTED]> wrote: > [snip] > override define EXCLUDE_DIRS > dir_a > dir_b > endef > > all: > @/bin/echo $(EXCLUDE_DIRS) > > When I try to make, I am guessing, the echo fails because of the multiline > variable. How do I fix this?
When it comes to moving special characters between make and the shell, things get ticklish as you've discovered. How about something like this: override define EXCLUDE_DIRS dir_a dir_b endef empty :=# define newline $(empty) endef escaped-EXCLUDE_DIRS := \ $(subst $(newline),\n,$(EXCLUDE_DIRS)) all: ; @echo -e "$(escaped-EXCLUDE_DIRS)" # EOF Ken Smith _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
