http://kiryl.livejournal.com/ ([identity profile] kiryl.livejournal.com) wrote in [personal profile] metaclass 2010-03-11 11:00 am (UTC)

$ cat Makefile
UNIQUE="an_unique_string_which_never_meets_in_filenames"

A1 = $(shell ls dir/*spaces | sed 's| |\\ |g')
A2 = $(subst $(UNIQUE),\ ,$(foreach filename,$(subst \ ,$(UNIQUE),$(A1)),$(filename).txt))

all: $(A2)

$(A2):
echo test > "$@"

UNIQUE выбрать по вкусу.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting