improve Makefile error paths, improve automake directory detection for sbiload

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2008-08-19 19:33:36 +02:00
parent 2a8feeba76
commit 07da829731
3 changed files with 10 additions and 7 deletions

View file

@ -1,12 +1,15 @@
#!/bin/bash
if test "x$AUTOMAKE_DIR" = "x"; then
if test -z "$AUTOMAKE_DIR"; then
if test -d /usr/local/share/automake; then
AUTOMAKE_DIR=/usr/local/share/automake
fi
if test -d /usr/share/automake; then
AUTOMAKE_DIR="/usr/share/automake"
fi
if test -z "$AUTOMAKE_DIR"; then
AUTOMAKE_DIR=/usr/share/`ls /usr/share | grep automake | tail -n 1`
fi
fi
for f in install-sh mkinstalldirs missing; do