Makefile revision 963
963N/A###############################################################################
963N/A#
963N/A# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
963N/A#
963N/A# Permission is hereby granted, free of charge, to any person obtaining a
963N/A# copy of this software and associated documentation files (the "Software"),
963N/A# to deal in the Software without restriction, including without limitation
963N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
963N/A# and/or sell copies of the Software, and to permit persons to whom the
963N/A# Software is furnished to do so, subject to the following conditions:
963N/A#
963N/A# The above copyright notice and this permission notice (including the next
963N/A# paragraph) shall be included in all copies or substantial portions of the
963N/A# Software.
963N/A#
963N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
963N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
963N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
963N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
963N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
963N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
963N/A# DEALINGS IN THE SOFTWARE.
963N/A#
963N/A#
963N/A
963N/A# This makefile simply creates a number of compatibility links in the
963N/A# proto area that we include in our packages
963N/A
963N/A# Package name used in tarballs
963N/AMODULE_NAME=compat-links
963N/A
963N/A# No sources
963N/AMODULE_VERSION=NONE
963N/ASOURCE_TARBALL_NAME=NONE
963N/ASOURCE_TARBALL_NAME_SET=yes
963N/A
963N/A# Don't need default targets for configure, build, or install, since there's
963N/A# nothing to build, and the install rule follows here
963N/ACONFIGURE_TARGETS =
963N/ACONFIGURE_TARGETS_SET=yes
963N/ABUILD_TARGETS =
963N/ABUILD_TARGETS_SET=yes
963N/AINSTALL_TARGETS = install_links
963N/AINSTALL_TARGETS_SET=yes
963N/A
963N/A### Include common rulesets
963N/Ainclude ../Makefile.inc
963N/A
963N/ADESTDIR=$(PROTODIR)
963N/A
963N/A# Even though we deliver all our files to /usr/{bin,lib} now, other
963N/A# consolidations still deliver to /usr/X11, so we have to maintain
963N/A# /usr/X11, which means leaving symlinks there to our programs & libraries
963N/A# to avoid breaking existing scripts and binaries
963N/A$(DESTDIR)/usr/X11:
963N/A mkdir -p $@
963N/A
963N/A# The SVID ABI established the X->X11 link
963N/A# PSARC 2004/187 established the X11R6->X11 link for compatibility with Linux
963N/A# PSARC 2008/405 removed /usr/openwin and replaced it with a link to /usr/X11
963N/AINSTALL_LINKS = $(DESTDIR)/usr/X $(DESTDIR)/usr/X11R6 $(DESTDIR)/usr/openwin
963N/A
963N/A$(INSTALL_LINKS): $(DESTDIR)/usr/X11
963N/A @rm -f $@
963N/A ln -s X11 $@
963N/A
963N/Ainstall_links: $(INSTALL_LINKS)