Try to pass input files in single quotas, like
'$<' instead of $<
You'll probably need to replace $@ by '$@' too
Cheers.
Louis-David Mitterrand wrote:
Hello,
I've got these rules to transcode my .flac music files to .mp3:
FLACS := $(shell find ./flac -name "*.flac" -print)
MP3 := $(patsubst ./flac/%.flac,./mp3/%.mp3,$(FLACS))
./mp3/%.mp3: ./flac/%.flac
@[ -d $(dir $@) ] || mkdir -p $(dir $@)
@echo $(basename $@) | (IFS=/ read form genre artist album
title; \
flac -cds $< | lame --tg $${genre:-NIL} --ta $${artist:-NIL} \
--tl $${album:-NIL} --tt $${title:-NIL} --preset fast standard
- $@ )
This works fine _except_ when there are spaces in .flac filenames, for
example:
make: *** No rule to make target
`flac/classical/dvorak_antonin/complete_piano_trios-beaux_arts_trio/Beaux',
needed by `all'. Stop.
Where should I add quotes to my rules to make them work with filenames
with spaces?
Thanks,
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make
--
Boris Godin
*Java Developer* - Gameloft COR
Paraná 560, Nueva Córdoba (CP 5000)
Tel.: (+54 0351) 460 26 26 int. 111
MSN: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make