]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* lib/am/header-vars.am (pkglibexecdir): New variable.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 16 Oct 2006 05:00:33 +0000 (05:00 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 16 Oct 2006 05:00:33 +0000 (05:00 +0000)
* automake.in (%standard_prefix): Add it.
* doc/automake.texi (Uniform): Document it.
(Program Sources): Adjust.
* NEWS: Update.
* tests/libexec.test: New test.
* tests/Makefile.am: Update.
Suggested by Eric Blake.

17 files changed:
ChangeLog
Makefile.in
NEWS
automake.in
doc/Makefile.in
doc/automake.texi
doc/stamp-vti
doc/version.texi
lib/Automake/Makefile.in
lib/Automake/tests/Makefile.in
lib/Makefile.in
lib/am/Makefile.in
lib/am/header-vars.am
m4/Makefile.in
tests/Makefile.am
tests/Makefile.in
tests/libexec.test [new file with mode: 0755]

index c7f0f5231dcbbb39050e5b6c2ca2a4cca8e67c6c..fa263b254d327e59add193c705d08dbff7339888 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2006-10-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * lib/am/header-vars.am (pkglibexecdir): New variable.
+       * automake.in (%standard_prefix): Add it.
+       * doc/automake.texi (Uniform): Document it.
+       (Program Sources): Adjust.
+       * NEWS: Update.
+       * tests/libexec.test: New test.
+       * tests/Makefile.am: Update.
+       Suggested by Eric Blake.
+
 2006-10-15  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * configure.ac, NEWS: Bump version to 1.10a.
index 9d7a111dcf7a467f051aa55179724e5da5ea8d89..ad3d4907cccc78b963a439ef6ae1f52acd96ad88 100644 (file)
@@ -16,8 +16,9 @@
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
diff --git a/NEWS b/NEWS
index 905c661e784c73753c9a11adc9cdb4c9492783bc..2b222ace8d177bd1d8bb91db61a920a564888671 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,8 @@
 New in 1.10a:
+* Miscellaneous changes:
+
+  - New shorthand `$(pkglibexecdir)' for `$(libexecdir)/@PACKAGE@'.
 \f
 New in 1.10:
 
index 090edf66bf614405b1a364abd77e633967015e95..985948c6a3ab6fbf4be66e21c74b65035d381a8d 100755 (executable)
@@ -240,8 +240,8 @@ my %standard_prefix =
     map { $_ => 1 } (qw(bin data dataroot dvi exec html include info
                         lib libexec lisp localstate man man1 man2 man3
                        man4 man5 man6 man7 man8 man9 oldinclude pdf
-                       pkgdatadir pkgincludedir pkglibdir ps sbin
-                       sharedstate sysconf));
+                       pkgdatadir pkgincludedir pkglibdir pkglibexecdir
+                       ps sbin sharedstate sysconf));
 
 # Copyright on generated Makefile.ins.
 my $gen_copyright = "\
index 800904c814d0abdb324f78c447b627fcb5a3828d..19d535356fc54f7ba9075156034bb4159cb09d04 100644 (file)
@@ -16,8 +16,9 @@
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
index 00ba26c5bf1c1a4dfb2380b8e5f9e7acd2fa6465..da3741117956c3c115a5697e70bef3210a13325f 100644 (file)
@@ -1864,13 +1864,15 @@ the @dfn{primary}.  For instance, the primary @code{PROGRAMS} holds a
 list of programs that are to be compiled and linked.
 @vindex PROGRAMS
 
-@cindex @code{pkglibdir}, defined
-@cindex @code{pkgincludedir}, defined
 @cindex @code{pkgdatadir}, defined
+@cindex @code{pkgincludedir}, defined
+@cindex @code{pkglibdir}, defined
+@cindex @code{pkglibexecdir}, defined
 
-@vindex pkglibdir
-@vindex pkgincludedir
 @vindex pkgdatadir
+@vindex pkgincludedir
+@vindex pkglibdir
+@vindex pkglibexecdir
 
 @cindex @code{PACKAGE}, directory
 A different set of names is used to decide where the built objects
@@ -1878,9 +1880,9 @@ should be installed.  These names are prefixes to the primary, and they
 indicate which standard directory should be used as the installation
 directory.  The standard directory names are given in the GNU standards
 (@pxref{Directory Variables, , , standards, The GNU Coding Standards}).
-Automake extends this list with @code{pkglibdir}, @code{pkgincludedir},
-and @code{pkgdatadir}; these are the same as the non-@samp{pkg}
-versions, but with @samp{$(PACKAGE)} appended.  For instance,
+Automake extends this list with @code{pkgdatadir}, @code{pkgincludedir},
+@code{pkglibdir}, and @code{pkglibexecdir}; these are the same as the
+non-@samp{pkg} versions, but with @samp{$(PACKAGE)} appended.  For instance,
 @code{pkglibdir} is defined as @samp{$(libdir)/$(PACKAGE)}.
 
 @cindex @code{EXTRA_}, prepending
@@ -4393,9 +4395,9 @@ programs.  Most of the comments about these also apply to libraries
 In a directory containing source that gets built into a program (as
 opposed to a library or a script), the @code{PROGRAMS} primary is used.
 Programs can be installed in @code{bindir}, @code{sbindir},
-@code{libexecdir}, @code{pkglibdir}, or not at all (@code{noinst_}).
-They can also be built only for @samp{make check}, in which case the
-prefix is @samp{check_}.
+@code{libexecdir}, @code{pkglibdir}, @code{pkglibexecdir}, or not at all
+(@code{noinst_}).  They can also be built only for @samp{make check}, in
+which case the prefix is @samp{check_}.
 
 For instance:
 
index 790cf3a7089bf4cf68a8d3965af5f756b41c766e..54b69b33bb3a2146b0aa02e78ffa8aa407ad13df 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 15 October 2006
+@set UPDATED 16 October 2006
 @set UPDATED-MONTH October 2006
-@set EDITION 1.10
-@set VERSION 1.10
+@set EDITION 1.10a
+@set VERSION 1.10a
index 790cf3a7089bf4cf68a8d3965af5f756b41c766e..54b69b33bb3a2146b0aa02e78ffa8aa407ad13df 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 15 October 2006
+@set UPDATED 16 October 2006
 @set UPDATED-MONTH October 2006
-@set EDITION 1.10
-@set VERSION 1.10
+@set EDITION 1.10a
+@set VERSION 1.10a
index 1aa4db9bd5d5791888383b3f7644bc198be60c90..55095eef70df7592bc2ad7227af1a95f6c0993eb 100644 (file)
@@ -16,8 +16,9 @@
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
index e03e767cf8b0f6fca9883007fe71b693b2680a46..2a4e8f0519afe5dfb4def661ed28fb27114baa8f 100644 (file)
@@ -15,8 +15,9 @@
 @SET_MAKE@
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
index 844a8ee02e26b7656c685fa2595ac2f8d0574b95..cccebadb1562a498fc2bda69047bd22a0f9e297f 100644 (file)
@@ -16,8 +16,9 @@
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
index 919fdfdd24f97384824f109f0895d84f1855a1ef..92a95e089a647266bbbe6bb3e463246c70b102b7 100644 (file)
@@ -16,8 +16,9 @@
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
index ee7b3cacbac6bacac0a6c71946dbd031bac5d0ac..fe79f81bcb41bad64b0a93f5be8a063f882b0a4d 100644 (file)
@@ -31,8 +31,9 @@ VPATH = @srcdir@
 
 ## Some derived variables that have been found to be useful.
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
index 2f211d5d61525fcdb09b6f610271e7cb5736058b..ef93d6b16d1d04f16a1d6184c595ef127f62e359 100644 (file)
@@ -16,8 +16,9 @@
 
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
index 1a9d9fd3513681dbe7902f0a7ea7c1833b664ba5..468d73d7625d9f4c18a6718accdb8ffdce46b499 100644 (file)
@@ -301,6 +301,7 @@ lex2.test \
 lex3.test \
 lex4.test \
 lex5.test \
+libexec.test \
 libobj2.test \
 libobj3.test \
 libobj4.test \
index 9e5779a238d37ca0862edb6ade6dd5d94ad74282..80b3c19b449c3f9843262be6cd33474560e7e893 100644 (file)
@@ -15,8 +15,9 @@
 @SET_MAKE@
 VPATH = @srcdir@
 pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 install_sh_DATA = $(install_sh) -c -m 644
 install_sh_PROGRAM = $(install_sh) -c
@@ -433,6 +434,7 @@ lex2.test \
 lex3.test \
 lex4.test \
 lex5.test \
+libexec.test \
 libobj2.test \
 libobj3.test \
 libobj4.test \
diff --git a/tests/libexec.test b/tests/libexec.test
new file mode 100755 (executable)
index 0000000..acc9875
--- /dev/null
@@ -0,0 +1,41 @@
+#! /bin/sh
+# Copyright (C) 2006  Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Automake; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+# PROGRAMS and LIBRARIES can be installed in (pkg)libexecdir.
+
+. ./defs || exit 1
+
+set -e
+
+cat > Makefile.am << 'END'
+libexec_PROGRAMS = foo
+pkglibexec_PROGRAMS = bar
+END
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+AC_OUTPUT
+END
+
+: > foo.c
+: > bar.c
+
+$ACLOCAL
+$AUTOMAKE