Pre-make and Post-make scripts

Garrett Cooper yanegomi at gmail.com
Wed Jul 25 16:02:58 UTC 2012


On Wed, Jul 25, 2012 at 5:49 AM, Brandon Falk <bfalk_bsd at brandonfa.lk> wrote:
> I'm curious as to how the best way of having a script run before and after
> make would be done. Would this require modification of the FreeBSD make
> template, or is this functionality already built in?
>
> The goal of this is to set up a script that prior to a build sends up a
> filesystem in ram (tmpfs) for the build to occur in, and afterwards saves
> the filesystem from ram onto the actual disk for backup/archiving. We all
> know that our poor disks could use a little break from the strain of build
> processes.

    Or just mount MAKEOBJDIRPREFIX (defaults to /usr/obj) in a swap
backed disk / tmpfs?
Cheers,
-Garrett


More information about the freebsd-hackers mailing list