| git.druid.rocks | index | druid520 | ports | ports/ | compilers/ | scc/ | add.sh |
ports/compilers/scc/add.sh
set -e
git clone --depth 1 git://git.simple-cc.org/scc
cd scc
# scc's own build orchestrates itself through a bundled, self-built POSIX
# make clone (scripts/scc-make), invoked directly as a plain shell command
# rather than through the usual recursive-$(MAKE) convention -- so it never
# gets the usual protection recursive make invocations have. every phase
# script here runs with MAKEFLAGS=-jN already exported (mpx's own
# parallelism wiring, on by default), and scc-make -- being a real POSIX
# make implementation -- dutifully inherits and reparses that MAKEFLAGS
# value as if it were its own argv, chokes on the attached "-jN" form, and
# aborts the whole build with a bare "usage: make" error before it ever
# gets past its own config step. unsetting it here only affects this
# build's outer `make` (which sees $MP_JOBS directly, unaffected).
unset MAKEFLAGS
make PREFIX=$MP_PREFIX
make PREFIX=$MP_PREFIX install
make clean || true