In general when I build packages I like to keep my build offal (intermediate forms, etc.) separate from my source files.  This makes cleaning up afterwards simpler (rm -fR build) and avoids errors like missing which files need to be deleted or, worse, deleting files that are actually needed.<div>
<br></div><div>I can't figure out how to do this in Mercury.</div><div><br></div><div>The User's Guide recommends <b>against</b> using <font face="'courier new', monospace">mmc</font> raw and instead recommends the use of <font face="'courier new', monospace">mmc --make</font>.  The latter, however, only works (it seems) from the source directory itself.  I can't find any way to tell <font face="'courier new', monospace">mmc --make</font> "go to directory X for source files" and I can't find a way to tell it "dump all your output into directory Y".</div>
<div><br></div><div>Is there any way to do what I want to do short of doing everything by hand in a Makefile (and making me try to figure out how to link .o files, etc. by hand)?  If not, would this be a feature that could show up in the compiler at any point?<br clear="all">
<div><br></div>-- <br>"Perhaps people don't believe this, but throughout all of the discussions of entering China our focus has really been what's best for the Chinese people. It's not been about our revenue or profit or whatnot."<br>
--Sergey Brin, demonstrating the emptiness of the "don't be evil" mantra.<br>
</div>