ledger/tools/build
2009-03-04 14:14:59 -04:00

19 lines
349 B
Bash
Executable file

#!/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 "$@"