Makefile revision 837
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein###############################################################################
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Permission is hereby granted, free of charge, to any person obtaining a
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# copy of this software and associated documentation files (the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# "Software"), to deal in the Software without restriction, including
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# without limitation the rights to use, copy, modify, merge, publish,
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# distribute, and/or sell copies of the Software, and to permit persons
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# to whom the Software is furnished to do so, provided that the above
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# copyright notice(s) and this permission notice appear in all copies of
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# the Software and that both the above copyright notice(s) and this
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# permission notice appear in supporting documentation.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews#
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# Except as contained in this notice, the name of a copyright holder
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# shall not be used in advertising or otherwise to promote the sale, use
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# or other dealings in this Software without prior written authorization
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# of the copyright holder.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein#
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMODULE_NAME=sun-aliases
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# No upstream sources for these files, since they're Solaris-specific
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinMODULE_VERSION=NONE
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSOURCE_TARBALL_NAME=NONE
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSOURCE_TARBALL_NAME_SET=yes
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_TARGETS =
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_TARGETS_SET=yes
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinBUILD_TARGETS =
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark AndrewsBUILD_TARGETS_SET=yes
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinINSTALL_TARGETS = install_aliases
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinINSTALL_TARGETS_SET=yes
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein### Include common rulesets
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininclude ../Makefile.inc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinDESTDIR=$(PROTODIR)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinINSTDIR=$(DESTDIR)$(X11_FONT_DIR)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinALIAS_DIRS = Type1 misc 75dpi 100dpi \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein misc-ISO8859-1 75dpi-ISO8859-1 100dpi-ISO8859-1
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonALIAS_FILES = $(ALIAS_DIRS:%=$(INSTDIR)/%/fonts.alias)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeininstall_aliases: $(ALIAS_FILES)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson$(INSTDIR)/%-ISO8859-1/fonts.alias.all: $(INSTDIR)/%/fonts.alias.all
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein -rm -f $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein cp -pf $< $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein$(INSTDIR)/%/fonts.alias.all: fonts.alias.%
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson -rm -f $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein @if [[ -f $(@:.all=) ]] ; then \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(START_CMD_ECHO) ; \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson cat $(@:.all=) > $@ ; \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein fi
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein cat $< >> $@
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson$(INSTDIR)/%/fonts.alias: $(INSTDIR)/%/fonts.alias.all
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein (cd $(@:fonts.alias=) ; $(INSTALLALIAS) fonts.alias.all .)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson