[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
whitespace in filenames
From: |
Louis-David Mitterrand |
Subject: |
whitespace in filenames |
Date: |
Wed, 24 Sep 2008 17:13:50 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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,
- whitespace in filenames,
Louis-David Mitterrand <=