Recursive wildcards in GNU make?

Posted by Roger Lipscombe on Stack Overflow See other posts from Stack Overflow or by Roger Lipscombe
Published on 2010-03-20T13:28:35Z Indexed on 2010/03/20 13:31 UTC
Read the original article Hit count: 333

Filed under:

It's been a while since I've used make, so bear with me...

I've got a directory, flac, containing .FLAC files. I've got a corresponding directory, mp3 containing MP3 files. If a FLAC file is newer than the corresponding MP3 file (or the corresponding MP3 file doesn't exist), then I want to run a bunch of commands to convert the FLAC file to an MP3 file, and copy the tags across.

The kicker: I need to search the flac directory recursively, and create corresponding subdirectories in the mp3 directory.

And I want to use make to drive this.

© Stack Overflow or respective owner

Related posts about gnumake