[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-hackers] [PATCH] A cache system for the build environment
From: |
Jim Ursetto |
Subject: |
Re: [Chicken-hackers] [PATCH] A cache system for the build environment |
Date: |
Wed, 6 Feb 2013 21:55:03 -0600 |
On Feb 4, 2013, at 1:43 PM, Michele La Monaca wrote:
> The goal of this patch is to cache build-related variables to avoid to
> repeat them in every single make invocation after the first one.
> [...] For example:
>
> make PREFIX=/tmp/chicken ARCH=x86-64
> vi file_to_be_fixed
> make
> make install
> make check
> make clean
> make PREFIX=/usr/local ARCH=x86-64
> make uninstall
> make install
This is how I do it. This way you have unlimited variants, can
recall any of them, and can optionally set a default. Also
it doesn't need a patch.
echo 'make PREFIX=/tmp PLATFORM=macosx "$@"' > make.test
echo 'make PREFIX=/usr/local PLATFORM=macosx "$@"' > make.local
chmod +x make.test make.local
ln -s make.local make # default make
./make.test
./make.test install
./make.test check
./make.test clean
./make uninstall
./make install
Jim