open-src/util/util-macros/Makefile
author Alan Coopersmith <Alan.Coopersmith@Sun.COM>
Fri, 01 Aug 2008 11:36:42 -0700
changeset 479 52ff63e83b3b
parent 371 d0a78a85764b
child 493 f43507b5737d
permissions -rw-r--r--
6731944 Finish transition to modular xorg-docs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     1
###############################################################################
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     2
#
371
d0a78a85764b 6677427 Mass minor update to X.Org upstream tarballs
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 355
diff changeset
     3
# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     4
# Use subject to license terms.
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     5
#
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     6
# Permission is hereby granted, free of charge, to any person obtaining a
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     7
# copy of this software and associated documentation files (the
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     8
# "Software"), to deal in the Software without restriction, including
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
     9
# without limitation the rights to use, copy, modify, merge, publish,
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    10
# distribute, and/or sell copies of the Software, and to permit persons
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    11
# to whom the Software is furnished to do so, provided that the above
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    12
# copyright notice(s) and this permission notice appear in all copies of
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    13
# the Software and that both the above copyright notice(s) and this
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    14
# permission notice appear in supporting documentation.
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    15
# 
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    16
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    17
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    18
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    19
# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    20
# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    21
# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    22
# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    23
# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    24
# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    25
# 
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    26
# Except as contained in this notice, the name of a copyright holder
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    27
# shall not be used in advertising or otherwise to promote the sale, use
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    28
# or other dealings in this Software without prior written authorization
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    29
# of the copyright holder.
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    30
#
479
52ff63e83b3b 6731944 Finish transition to modular xorg-docs
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 371
diff changeset
    31
# @(#)Makefile	1.4	08/07/30
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    32
#
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    33
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    34
PWD:sh=pwd
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    35
TOP=$(PWD)/../..
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    36
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    37
# Version number (used in path names)
371
d0a78a85764b 6677427 Mass minor update to X.Org upstream tarballs
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 355
diff changeset
    38
VERSION=1.1.6
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    39
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    40
MODULE_NAME=util-macros
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    41
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    42
# Source tarball
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    43
SOURCE_TARBALL_NAME=$(MODULE_NAME)-$(VERSION).tar.bz2
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    44
SOURCE_TARBALL_DIR=util
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    45
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    46
# Patches to apply to source after unpacking, in order
479
52ff63e83b3b 6731944 Finish transition to modular xorg-docs
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 371
diff changeset
    47
SOURCE_PATCHES=	XORG_SGML_PATH.patch,-p1
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    48
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    49
# Directory created by unpacking source
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    50
SOURCE_DIR=$(BUILD_DIR)/$(MODULE_NAME)-$(VERSION)
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    51
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    52
### Include common rulesets
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    53
include $(TOP)/common/Makefile.inc
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    54
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    55
### Rules specific to this directory:
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    56
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    57
# Command line options to GNU autoconf configure script
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    58
CONFIG_OPTS = --prefix=$(X11_DIR)
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    59
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    60
build_gen: $(SOURCE_DIR)/Makefile
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    61
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    62
# Run configure script
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    63
$(SOURCE_DIR)/Makefile: $(UNPACK_TARGET)
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    64
	(cd $(SOURCE_DIR) ; \
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    65
	 chmod a+x configure ; \
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    66
	 ./configure $(CONFIG_OPTS) )
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    67
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    68
# Install
355
a3a81e9c227d 6672824 Copyright/license notices from X.Org software should be included in SVR4 package copyrights
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents: 174
diff changeset
    69
install_gen:: $(SOURCE_DIR)/Makefile
174
b20e7617ca8a 6568258 /tmp/.X11-pipe/X0 named pipe not being created by Xorg 7.2
Alan Coopersmith <Alan.Coopersmith@Sun.COM>
parents:
diff changeset
    70
	(cd $(SOURCE_DIR) ; $(MAKE) $(MFLAGS) -e DESTDIR=$(PROTODIR) install)