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