aboutsummaryrefslogtreecommitdiff
path: root/dm
blob: 2a085fd9ddba9c4728683ee25644712415605b7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

set -e

git config core.hooksPath .githooks

if [ ! -f SUBSTS.local ]; then
    echo "Please create the file SUBSTS.local first."
    exit 1;
fi

chmod 600 SUBSTS.local

case `uname` in
    Linux|Darwin)
        make --version | grep "GNU Make" > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; }
        MAKE=`command -v make`
        ;;
    *)
        command -v gmake > /dev/null 2>&1 || { echo "Please install GNU Make"; exit 1; }
        MAKE=`command -v gmake`
        ;;
esac

${MAKE} -f Makefile $@

# vim:ft=sh