Makefile revision 919
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley###############################################################################
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Use is subject to license terms.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# copy of this software and associated documentation files (the "Software"),
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# to deal in the Software without restriction, including without limitation
515c7f3c43f76d7b439905b18009105364b36100Automatic Updater# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9c3531d72aeaad6c5f01efe6a1c82023e1379e4dDavid Lawrence# and/or sell copies of the Software, and to permit persons to whom the
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# Software is furnished to do so, subject to the following conditions:
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley#
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# The above copyright notice and this permission notice (including the next
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# paragraph) shall be included in all copies or substantial portions of the
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# Software.
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley#
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# DEALINGS IN THE SOFTWARE.
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley#
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein#
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# Package name used in tarballs
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinMODULE_NAME=xorg-docs
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# Version number (used in path names)
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinMODULE_VERSION=1.5
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# Checksums for upstream tarball
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinTARBALL_MD5 = 359ac83ad27eecd5588914ba8715301d
4e142a5bccd2944174ad9ae58d86cf03e170054dBob HalleyTARBALL_SHA1 = e4a0fdf848e9d5baa2de625ce74f204de37e0fb0
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# Patches to apply to source after unpacking, in order
4e142a5bccd2944174ad9ae58d86cf03e170054dBob HalleySOURCE_PATCHES= \
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley solaris-manpages.patch
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley
42e339f58877e798f6cc3723f7d17df2208655d0Bob Halley# Makefiles require gmake -i to build all targets
4e142a5bccd2944174ad9ae58d86cf03e170054dBob HalleyMODULE_MAKE=$(GNUMAKE)
4e142a5bccd2944174ad9ae58d86cf03e170054dBob HalleyMODULE_MAKE_SET=yes
4e142a5bccd2944174ad9ae58d86cf03e170054dBob HalleyMODULE_MAKEFLAGS= MAKEFLAGS="-i"
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley
4e142a5bccd2944174ad9ae58d86cf03e170054dBob Halley# Additional arguments to configure script
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinMODULE_CONFIG_OPTS=--enable-txt --disable-pdf --disable-ps --disable-html \
b2ca6fd3a8293440b4d263723525396059cf2400Brian Wellington --docdir='$(X11_DOC_DIR)' \
b2ca6fd3a8293440b4d263723525396059cf2400Brian Wellington XORG_SGML_PATH=$(PROTODIR)$(X11_DIR)/share/sgml
b2ca6fd3a8293440b4d263723525396059cf2400Brian Wellington
b2ca6fd3a8293440b4d263723525396059cf2400Brian Wellington# Module dependencies
b2ca6fd3a8293440b4d263723525396059cf2400Brian WellingtonMODULE_CONFIGURE_DEPS=$(DOCBOOK2TEXT) $(XORG_DEFS_ENT)
42e339f58877e798f6cc3723f7d17df2208655d0Bob Halley
42e339f58877e798f6cc3723f7d17df2208655d0Bob Halley# Additional install rules beyond what upstream installs
7cd4c3ddd1baf5f2b204562fdba3da37c716cc78Andreas GustafssonMODULE_ADD_INSTALL_TARGETS=install_docs
42e339f58877e798f6cc3723f7d17df2208655d0Bob Halley
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews### Include common rulesets
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrewsinclude ../Makefile.inc
6098d364b690cb9dabf96e9664c4689c8559bd2eMark Andrews
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsSGML_DIR=$(SOURCE_DIR)/sgml
6098d364b690cb9dabf96e9664c4689c8559bd2eMark AndrewsDOC_DIR=$(PROTODIR)$(X11_DOC_DIR)
ab023a65562e62b85a824509d829b6fad87e00b1Rob AusteinMAN_DIR=$(PROTODIR)$(X11_MAN_DIR)
42e339f58877e798f6cc3723f7d17df2208655d0Bob Halley
7cd4c3ddd1baf5f2b204562fdba3da37c716cc78Andreas Gustafssoninstall_docs: $(INSTALL_DEPS)
7cd4c3ddd1baf5f2b204562fdba3da37c716cc78Andreas Gustafsson mkdir -p $(DOC_DIR) $(MAN_DIR)/man5
42e339f58877e798f6cc3723f7d17df2208655d0Bob Halley cp -p $(SGML_DIR)/LICENSE.txt $(DOC_DIR)/LICENSE
48019314431389cca5f8eba7ee9aa5bc08a67f4eMark Andrews cp -p $(SGML_DIR)/RELNOTES.txt $(DOC_DIR)/RELNOTES
48019314431389cca5f8eba7ee9aa5bc08a67f4eMark Andrews cp -p $(SGML_DIR)/input/XKB-Config.txt $(DOC_DIR)/README.XKB-Config
48019314431389cca5f8eba7ee9aa5bc08a67f4eMark Andrews cp -p $(SGML_DIR)/input/XKB-Enhancing.txt $(DOC_DIR)/README.XKB-Enhancing
48019314431389cca5f8eba7ee9aa5bc08a67f4eMark Andrews cp -p $(SGML_DIR)/fonts/fonts.txt $(DOC_DIR)/README.fonts
48019314431389cca5f8eba7ee9aa5bc08a67f4eMark Andrews cp -p X11.5 $(MAN_DIR)/man5/X11.5
deb7afc49f9b45a4dfef3449d650ff0d7ff6ce40Andreas Gustafsson