* automake.in (handle_factored_dependencies): Flag install-hook as
an error.
* tests/insthook.test: Exercise this.
2005-02-27 Alexandre Duret-Lutz <adl@gnu.org>
+ Fix for PR automake/448:
+ * automake.in (handle_factored_dependencies): Flag install-hook as
+ an error.
+ * tests/insthook.test: Exercise this.
+
* m4/lispdir.m4: Use datarootdir instead of datadir to match GCS.
* doc/automake.texi (Hard-Coded Install Paths): Adjust.
"use `install-data-local' or `install-exec-local', "
. "not `install-local'");
+ reject_rule ('install-hook',
+ "use `install-data-hook' or `install-exec-hook', "
+ . "not `install-hook'");
+
# Install the -local hooks.
foreach (keys %dependencies)
{
#! /bin/sh
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
#
# This file is part of GNU Automake.
#
grep 1 bin/foo-1.0
grep 2 bin/foo-2.0
grep 2 bin/foo
+
+
+# install-hook is an error.
+cat >>Makefile.am <<EOF
+install-hook:
+ echo test
+EOF
+
+AUTOMAKE_fails
+grep install-data-hook stderr
+grep install-exec-hook stderr