]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Fix for PR automake/448:
authorAlexandre Duret-Lutz <adl@gnu.org>
Sun, 27 Feb 2005 18:08:30 +0000 (18:08 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sun, 27 Feb 2005 18:08:30 +0000 (18:08 +0000)
* automake.in (handle_factored_dependencies): Flag install-hook as
an error.
* tests/insthook.test: Exercise this.

ChangeLog
automake.in
tests/insthook.test

index 1851b88dc13b907552412d92dd45ddaf485fb6af..52d27ff9b917f98a01b3c6b8dda6146081b411ea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
 
index 103cf98087ad0adbd9ab0552c53e69411f37f4ff..5dc68a10b0301965ed344d02c10203c1cef86219 100755 (executable)
@@ -4441,6 +4441,10 @@ sub handle_factored_dependencies
               "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)
     {
index 2b05805b05a18911261beae3012b9328b65ec103..b924d20e72ce7c0f09b136c0a8f052504a8c813c 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2003  Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -66,3 +66,14 @@ VERSION=2.0 $MAKE -e install
 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