automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: flag install-hook as an error (PR/448)


From: Alexandre Duret-Lutz
Subject: FYI: flag install-hook as an error (PR/448)
Date: Sun, 27 Feb 2005 19:08:17 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

I'm installing this on HEAD.

2005-02-27  Alexandre Duret-Lutz  <address@hidden>

        Fix for PR automake/448:
        * automake.in (handle_factored_dependencies): Flag install-hook as
        an error.
        * tests/insthook.test: Exercise this.

Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.1598
diff -u -r1.1598 automake.in
--- automake.in 12 Feb 2005 11:42:24 -0000      1.1598
+++ automake.in 27 Feb 2005 18:07:28 -0000
@@ -4441,6 +4441,10 @@
               "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: tests/insthook.test
===================================================================
RCS file: /cvs/automake/automake/tests/insthook.test,v
retrieving revision 1.10
diff -u -r1.10 insthook.test
--- tests/insthook.test 14 Nov 2003 21:25:58 -0000      1.10
+++ tests/insthook.test 27 Feb 2005 18:07:28 -0000
@@ -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 @@
 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

-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]