help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: whitespace in filenames


From: Boris Godin
Subject: Re: whitespace in filenames
Date: Wed, 24 Sep 2008 12:36:15 -0300
User-agent: Thunderbird 2.0.0.16 (Windows/20080708)

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
address@hidden
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:
address@hidden

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]