summaryrefslogtreecommitdiff
path: root/tools/build
blob: 05c7d75a561f8fa6d7cf863427303e875ddc331c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

set -e

SRCDIR=$(pwd)

if [ -d ~/Products/ledger ]; then
    cd ~/Products/ledger
fi

if [ ! -f Makefile -o \
     $SRCDIR/Makefile.am  -nt Makefile -o \
     $SRCDIR/configure.ac -nt Makefile -o \
     $SRCDIR/acprep       -nt Makefile -o \
     $SRCDIR/myacprep     -nt Makefile ]; then
    (cd $SRCDIR && tools/myacprep)
fi

make "$@"