summaryrefslogtreecommitdiff
path: root/contrib/dmake
blob: 8e0ac854478a86f2c6c8738120c7efad6b0ac706 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#! /bin/sh

# Example script contributed by Luke Gorrie

# "Drop-in" front end to 'make' that uses the distributed compile farm
# via `distcc'

# Compile farm hosts are stored in ~bluetail/distcc-hosts. We exclude
# the local machine to free up resources for preprocessing and
# linking, since it seems to be the bottleneck (at least on
# kookaburra).

DISTCC_HOSTS=$(sed s/$(hostname -s)// < /home/share/bluetail/distcc-hosts)

make CC='/home/share/luke/bin/distcc gcc' -j 7 "$@"