Makefile.ttf revision 919
f743002678eb67b99bbc29fee116b65d9530fec0wrowe# -*- Makefile -*- rules common to most X.Org TrueType font modules
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg#
a34684a59b60a4173c25035d0c627ef17e6dc215rpluem# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Use is subject to license terms.
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic#
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# Permission is hereby granted, free of charge, to any person obtaining a
1337c7673efc1f80f634139fbad7cbb98a0dc657ylavic# copy of this software and associated documentation files (the "Software"),
4da61833a1cbbca94094f9653fd970582b97a72etrawick# to deal in the Software without restriction, including without limitation
4da61833a1cbbca94094f9653fd970582b97a72etrawick# the rights to use, copy, modify, merge, publish, distribute, sublicense,
4da61833a1cbbca94094f9653fd970582b97a72etrawick# and/or sell copies of the Software, and to permit persons to whom the
4da61833a1cbbca94094f9653fd970582b97a72etrawick# Software is furnished to do so, subject to the following conditions:
4da61833a1cbbca94094f9653fd970582b97a72etrawick#
4789804be088bcd86ae637a29cdb7fda25169521jailletc# The above copyright notice and this permission notice (including the next
4789804be088bcd86ae637a29cdb7fda25169521jailletc# paragraph) shall be included in all copies or substantial portions of the
4789804be088bcd86ae637a29cdb7fda25169521jailletc# Software.
4789804be088bcd86ae637a29cdb7fda25169521jailletc#
e50c3026198fd496f183cda4c32a202925476778covener# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
e50c3026198fd496f183cda4c32a202925476778covener# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
e50c3026198fd496f183cda4c32a202925476778covener# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5b88c8507d5ef6d0c4cfbc78230294968175b638minfrin# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic# DEALINGS IN THE SOFTWARE.
6c3b9cebb551140fbb25d58bae08b539b3802133ylavic#
4f29b65ab4b547ad5dbe506e2d0ff5d12ead9247ylavic#
4f29b65ab4b547ad5dbe506e2d0ff5d12ead9247ylavic
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic# No configure script to run
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavicCONFIGURE_TARGETS=
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavicCONFIGURE_TARGETS_SET=yes
0a0df13b7f1f4f1a74fe295253d89ca3911b301aylavic
69301145375a889e7e37caf7cc7321ac0f91801erpluem# Nothing to build
69301145375a889e7e37caf7cc7321ac0f91801erpluemBUILD_TARGETS=
69301145375a889e7e37caf7cc7321ac0f91801erpluemBUILD_TARGETS_SET=yes
506bfe33206b2fece40ef25f695af39dd4130facjkaluza
506bfe33206b2fece40ef25f695af39dd4130facjkaluza# What to install
506bfe33206b2fece40ef25f695af39dd4130facjkaluzaINSTALL_TARGETS=install_ttf $(MODULE_ADD_INSTALL_TARGETS)
506bfe33206b2fece40ef25f695af39dd4130facjkaluzaINSTALL_TARGETS_SET=yes
d58a848a016d401b965111e50ef829e1641f7834minfrin
d58a848a016d401b965111e50ef829e1641f7834minfrin### Include common rulesets
d58a848a016d401b965111e50ef829e1641f7834minfrininclude ../Makefile.inc
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sf
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sf# Set default directory name if not set in module makefile
2e6f4d654c96c98b761fb012fd25c5d5b1558c44sfTTF_SUBDIR_DEFAULT = $(TTF_SUBDIR_SET:yes=$(POUND_SIGN))
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic$(TTF_SUBDIR_DEFAULT) TTF_SUBDIR=$(MODULE_NAME)
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavicTTF_FONT_DIR_DEFAULT = $(TTF_FONT_DIR_SET:yes=$(POUND_SIGN))
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic$(TTF_FONT_DIR_DEFAULT) TTF_FONT_DIR=$(TRUETYPE_FONT_DIR)/$(TTF_SUBDIR)
17e6c95f3b22d18acdf8380fb26a8d0e10c80767ylavic
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavicFONT_DEST_DIR=$(PROTODIR)/$(TTF_FONT_DIR)
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavic
e8bd80a4bb88199d2f9a24a50345688e52d9c116ylavicinstall_ttf: $(SOURCE_TARGETS)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic -rm -rf $(FONT_DEST_DIR)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic mkdir -p $(FONT_DEST_DIR)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic cp $(TTF_FONT_FILES:%=$(SOURCE_DIR)/%) $(FONT_DEST_DIR)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(MKFONTSCALE) $(FONT_DEST_DIR)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic LD_LIBRARY_PATH="$(FONT_LIBS_PATH)" $(MKFONTDIR) $(FONT_DEST_DIR)
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic
330e16bea8fe9cace4de90c349750c03dfb1fe64ylavic
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener
d7205b1a86c51c27b71a2c458dc453fd53a261c1covener