Makefile revision 479
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews###############################################################################
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
32098293b78922a5fbd10906afa28624820d3756Tinderbox User# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater# Use subject to license terms.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission is hereby granted, free of charge, to any person obtaining a
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# copy of this software and associated documentation files (the
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# "Software"), to deal in the Software without restriction, including
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# without limitation the rights to use, copy, modify, merge, publish,
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# distribute, and/or sell copies of the Software, and to permit persons
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# to whom the Software is furnished to do so, provided that the above
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# copyright notice(s) and this permission notice appear in all copies of
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# the Software and that both the above copyright notice(s) and this
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# permission notice appear in supporting documentation.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Except as contained in this notice, the name of a copyright holder
10b865e9187fc77cae02f106ddcc9e03eecdfe06Tinderbox User# shall not be used in advertising or otherwise to promote the sale, use
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# or other dealings in this Software without prior written authorization
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# of the copyright holder.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# @(#)Makefile 1.4 08/07/30
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Package name used in tarballs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserDOC_NAME=xorg-docs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Version number (used in path names)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserVERSION=1.4
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Patches to apply to source after unpacking, in order
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSOURCE_PATCHES= \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User docbook-errors.patch,-p1 \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User X-manpage.patch,-p1 \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User solaris-manpages.patch
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Makefiles require gmake to build all targets
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userbuild_gen:= MAKE=$(GNUMAKE) -i
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserDOC_CONFIG_OPTS=--enable-txt --disable-pdf --disable-ps --disable-html \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater XORG_SGML_PATH=$(PROTODIR)$(X11_DIR)/share/sgml
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User### Include common rulesets
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinclude ../Makefile.inc
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSGML_DIR=$(SOURCE_DIR)/sgml
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserDOC_DIR=$(PROTODIR)$(X11_DOC_DIR)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserMAN_DIR=$(PROTODIR)$(X11_MAN_DIR)
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinstall_gen::
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User mkdir -p $(DOC_DIR) $(MAN_DIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt cp -p $(SGML_DIR)/LICENSE.txt $(DOC_DIR)/LICENSE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater cp -p $(SGML_DIR)/RELNOTES.txt $(DOC_DIR)/RELNOTES
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater cp -p $(SGML_DIR)/input/XKB-Config.txt $(DOC_DIR)/README.XKB-Config
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User cp -p $(SGML_DIR)/input/XKB-Enhancing.txt $(DOC_DIR)/README.XKB-Enhancing
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User cp -p $(SGML_DIR)/fonts/fonts.txt $(DOC_DIR)/README.fonts
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User cp -p X11.5 $(MAN_DIR)/man5/X11.5
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Need to autoreconf to build with newer util-macros that allows overriding
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# XORG_SGML_PATH until upstream is built with it
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET) autoreconf
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater