Mix compile to arbitrary directory?


I was wondering if it was possible to use mix compile to an arbitrary directory? Say I don’t want to use _build/test/lib but just want to dump all of my .beam files to _build? I see that I can use the build_path:, but that isn’t quite what I am looking for. build_structure: looks interesting, but I don’t really see any examples of what it actually does.

Do I just need to rely on a shell script to move the files?



What I ended up doing was making a mix task that passed the result from File.ls on _build/ to a nested Enum.each to loop through all deps, then move their .beam files to a top level directory using File.copy. I’m sure there is a more graceful way of doing it built in, but its not obvious to me.