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