From 6dacc1f747a4e2a692dc273f705eec00888b8ab4 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 24 Nov 1995 23:47:32 +0000 Subject: [PATCH] Test for install-sh and mkinstalldirs --- automake.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/automake.in b/automake.in index 810976bf..166446df 100755 --- a/automake.in +++ b/automake.in @@ -444,6 +444,21 @@ p $echo "automake: ${am_reldir}/texinfo.tex does not exist" 1>&2 } + case "$am_makefile" in + */*) + # In a subdirectory. + ;; + + *) + # In top-level, or only, directory. + test -f $am_reldir/install-sh || { + $echo "automake: $am_reldir/install-sh does not exist" 1>&2 + } + test -f $am_reldir/mkinstalldirs || { + $echo "automake: $am_reldir/mkinstalldirs does not exist" 1>&2 + } + ;; + esac # Copy from Makefile.am to output. sed '/^[^#=]*:/,$d' ${am_makefile}.am >&4 -- 2.43.5