summaryrefslogtreecommitdiff
path: root/xorg-macros.m4.in
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2009-10-12 11:07:14 -0400
committerGaetan Nadon <memsize@videotron.ca>2009-11-07 09:34:49 -0500
commite6ceec1bc497ce9d311fd17e9a171e83148362ad (patch)
tree1873de1ab61a91c5ead5ab7ebd75c1929b5c5089 /xorg-macros.m4.in
parent22d7360510553775650e6a4e134f165937db4abe (diff)
Add an XORG_INSTALL macro to allow comps to copy the INSTALL file #24206
The Makefile installs INSTALL in share/doc/util-macros An INSTALL_CMD is provided in the new XORG_INSTALL macro which is added to XORG_DEFAULT_OPTIONS. Components add INSTALL target to their Makefile similar to ChangeLog
Diffstat (limited to 'xorg-macros.m4.in')
-rw-r--r--xorg-macros.m4.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/xorg-macros.m4.in b/xorg-macros.m4.in
index 8875193..336490a 100644
--- a/xorg-macros.m4.in
+++ b/xorg-macros.m4.in
@@ -497,5 +497,20 @@ XORG_CWARNFLAGS
XORG_STRICT_OPTION
XORG_RELEASE_VERSION
XORG_CHANGELOG
+XORG_INSTALL
XORG_MANPAGE_SECTIONS
]) # XORG_DEFAULT_OPTIONS
+
+# XORG_INSTALL()
+# ----------------
+# Minimum version: 1.4.0
+#
+# Defines the variable INSTALL_CMD as the command to copy
+# INSTALL from $prefix/share/doc/util-macros.
+#
+AC_DEFUN([XORG_INSTALL], [
+INSTALL_CMD="if test -f "$prefix/share/doc/util-macros/INSTALL"; then \
+cp -f "$prefix/share/doc/util-macros/INSTALL" \$(top_srcdir); \
+else echo '$prefix/share/doc/util-macros/INSTALL cannot be found.' >&2; fi "
+AC_SUBST([INSTALL_CMD])
+]) # XORG_INSTALL