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 _______________________________________________ Chicken-hackers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-hackers
