19
Dynamic directory creation in GNU Make?
(programming.dev)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
This breaks down when there are more than one
SOURCEfile, since eachDESTINATIONfile depends on all source files. This means that$<will always be the first file inSOURCE. For example, ifsourcecontains the files0001-01-01-some-file-name.mdand0002-02-02-some-file-name.md:OP is probably better off using a scripting language to automate this kind of thing
EDIT: Fixed example filenames
Well spotted, thanks. I replied further down the thread to OP with another option for doing this in Make, if you'd like to spot any bugs in that one too ;)