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