Makefile revision 653
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin###############################################################################
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Droid Fonts Makefile
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use subject to license terms.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Permission is hereby granted, free of charge, to any person obtaining a
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# copy of this software and associated documentation files (the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# "Software"), to deal in the Software without restriction, including
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# without limitation the rights to use, copy, modify, merge, publish,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# distribute, and/or sell copies of the Software, and to permit persons
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# to whom the Software is furnished to do so, provided that the above
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# copyright notice(s) and this permission notice appear in all copies of
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# the Software and that both the above copyright notice(s) and this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# permission notice appear in supporting documentation.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Except as contained in this notice, the name of a copyright holder
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# shall not be used in advertising or otherwise to promote the sale, use
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or other dealings in this Software without prior written authorization
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# of the copyright holder.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# @(#)Makefile 1.1 09/02/26 SMI
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Package name used in tarballs
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_NAME=google-droid-fonts
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Version number (used in path names)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinMODULE_VERSION=1.00
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Source tarball
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_TARBALL_NAME=$(MODULE_NAME)-$(MODULE_VERSION).tar.gz
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_TARBALL_NAME_SET=yes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Directory created when unpacking tarball
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_DIRNAME=base
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_DIRNAME_SET=yes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Download site for source
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_URL='http://android.git.kernel.org/?p=platform/frameworks/base.git;a=snapshot;h=b2fdf4096d6f8fc4aaca49bd804f480ba7892856;sf=tgz'
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_URL_SET=yes
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinSOURCE_UNCOMPRESS=gzcat
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Patches to apply to source after unpacking, in order
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinSOURCE_PATCHES= # None
3e14f97f673e8a630f076077de35afdd43dc1587Roger A. Faulkner
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# What to build
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILD_TARGETS=$(SOURCE_DIR)/fonts.scale
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinBUILD_TARGETS_SET=yes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# What to install
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinINSTALL_TARGETS=install_droid
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinINSTALL_TARGETS_SET=yes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# License file
7c2fbfb345896881c631598ee3852ce9ce33fb07April ChinLICENSE_FILE=NOTICE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLICENSE_FILE_SET=yes
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin### Include common rulesets
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininclude ../Makefile.inc
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin### Rules specific to this directory:
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinDROID_FONT_FILES= \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSans.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSans-Bold.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSerif-Regular.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSerif-Bold.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSerif-Italic.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSerif-BoldItalic.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSansMono.ttf \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin DroidSansFallback.ttf
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin$(SOURCE_DIR)/fonts.scale: $(UNPACK_TARGET)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin (cd $(SOURCE_DIR) && $(MKFONTSCALE) . )
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinFONT_DEST_DIR=$(PROTODIR)$(X11_FONT_DIR)/TrueType/google-droid
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chininstall_droid:: $(BUILD_TARGETS)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -rm -rf $(FONT_DEST_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin mkdir -p $(FONT_DEST_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin ( cd $(SOURCE_DIR) ; cp -p $(DROID_FONT_FILES) $(FONT_DEST_DIR)/ )
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(MKFONTSCALE) $(FONT_DEST_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin $(MKFONTDIR) $(FONT_DEST_DIR)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin