Makefile revision 977
792N/A###############################################################################
792N/A#
792N/A# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
792N/A#
792N/A# Permission is hereby granted, free of charge, to any person obtaining a
792N/A# copy of this software and associated documentation files (the "Software"),
792N/A# to deal in the Software without restriction, including without limitation
792N/A# the rights to use, copy, modify, merge, publish, distribute, sublicense,
792N/A# and/or sell copies of the Software, and to permit persons to whom the
792N/A# Software is furnished to do so, subject to the following conditions:
792N/A#
792N/A# The above copyright notice and this permission notice (including the next
792N/A# paragraph) shall be included in all copies or substantial portions of the
792N/A# Software.
792N/A#
792N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
792N/A# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
792N/A# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
792N/A# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
792N/A# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
792N/A# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
792N/A# DEALINGS IN THE SOFTWARE.
792N/A#
792N/A
792N/AMODULE_NAME=sun-aliases
792N/A
792N/A# Default package name for bitmap font packages
792N/AMODTYPE_PKGHIER=system/font/xorg
792N/AMODTYPE_PKGHIER_SET=yes
792N/A
792N/A# No upstream sources for these files, since they're Solaris-specific
792N/AMODULE_VERSION=NONE
792N/ASOURCE_TARBALL_NAME=NONE
792N/ASOURCE_TARBALL_NAME_SET=yes
792N/A
792N/ASOURCE_TARGETS =
792N/ASOURCE_TARGETS_SET=yes
792N/A
792N/ACONFIGURE_TARGETS =
792N/ACONFIGURE_TARGETS_SET=yes
792N/A
792N/ABUILD_TARGETS =
792N/ABUILD_TARGETS_SET=yes
792N/A
792N/AINSTALL_TARGETS = install_aliases
792N/AINSTALL_TARGETS_SET=yes
792N/A
792N/ABUILD_TYPES = core ISO8859-1
792N/ABUILD_TYPES_SET = yes
792N/A
792N/A# Special rules for pkg manifest generation
792N/AMANIFEST_TARGETS=$(BUILD_TYPES:%=manifest_%)
792N/AMANIFEST_TARGETS_SET=yes
792N/AMODULE_PKGTAIL_core = xorg-core
792N/AMODULE_PKGTAIL_ISO8859-1 = iso8859-1
792N/AMODULE_PKGTAIL = $(MODULE_PKGTAIL_$(BUILD_TYPES))
792N/A
792N/A### Include common rulesets
792N/Ainclude ../Makefile.inc
792N/A
792N/ADESTDIR=$(PROTODIR)
792N/AINSTDIR=$(DESTDIR)$(X11_FONT_DIR)
792N/A
792N/AALIAS_DIRS_core = Type1 misc 75dpi 100dpi
792N/AALIAS_DIRS_ISO8859-1 = misc-ISO8859-1 75dpi-ISO8859-1 100dpi-ISO8859-1
792N/AALIAS_DIRS = $(ALIAS_DIRS_$(BUILD_TYPE))
792N/AALIAS_FILES = $(ALIAS_DIRS:%=$(INSTDIR)/%/fonts.alias)
792N/A
792N/Ainstall_aliases: $(ALIAS_FILES)
792N/A
792N/A$(INSTDIR)/%-ISO8859-1/fonts.alias.all: $(INSTDIR)/%/fonts.alias.all
792N/A -rm -f $@
792N/A mkdir -p $(@D)
851N/A cp -pf $< $@
851N/A
792N/A$(INSTDIR)/%/fonts.alias.all: fonts.alias.%
792N/A -rm -f $@
792N/A mkdir -p $(@:fonts.alias.all=)
792N/A @if [[ -f $(@:.all=) ]] ; then \
792N/A $(START_CMD_ECHO) ; \
792N/A cat $(@:.all=) > $@ ; \
792N/A fi
792N/A cat $< >> $@
792N/A
792N/A$(INSTDIR)/%/fonts.alias: $(INSTDIR)/%/fonts.alias.all $(INSTDIR)/%/fonts.dir
792N/A (cd $(@:fonts.alias=) ; \
792N/A LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(INSTALLALIAS) fonts.alias.all .)
792N/A
792N/A# Needed when installing to alternate protodir, such as when
792N/A# generating pkg manifests
792N/A$(INSTDIR)/%/fonts.dir:
792N/A print '0' > $@.fake
792N/A ln $@.fake $@ ; rm $@.fake
792N/A
792N/Amanifest_%:
792N/A $(MAKE) $(MAKEFLAGS) manifest-per-type \
792N/A BUILD_TYPES="$(@:manifest_%=%)" \
792N/A ALIAS_DIRS='$(@:manifest_%=$$(ALIAS_DIRS_%))' \
792N/A MODULE_PKGTAIL_SET="yes"
792N/A