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