2002-05-10 20:32:34 +00:00
|
|
|
# Copyright (c) 2001-2002 IBM, Inc. and others
|
2001-11-10 01:27:58 +00:00
|
|
|
#
|
|
|
|
# File
|
|
|
|
# icu/source/samples/ufortune/resources/Makefile
|
|
|
|
#
|
|
|
|
# Usage:
|
|
|
|
# See the instructions in the parent Makefile,
|
|
|
|
# icu/source/samples/ufortune/Makefile.
|
2001-11-12 18:08:51 +00:00
|
|
|
# This subproject builds the ICU resource files for ufortune.
|
2001-11-10 01:27:58 +00:00
|
|
|
# It is normally invoked from the parent directory,
|
|
|
|
# although the resources can be built from here.
|
|
|
|
#
|
|
|
|
# Two ICU tools are run from this makefile:
|
|
|
|
# genrb compiles a resource source file (.txt) into
|
|
|
|
# a binary .res file.
|
|
|
|
# pkgdata combines all of the .res files into a single
|
|
|
|
# shared library that can then be linked with the
|
|
|
|
# main application.
|
|
|
|
#
|
|
|
|
# pkgdata will recursively generate and run yet
|
|
|
|
# another makefile, which in turn runs two more
|
|
|
|
# icu tools. gencmn combines the individual .res
|
|
|
|
# files, and genccode emits the data as C source
|
|
|
|
# code that can then be built into a .so
|
|
|
|
#
|
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
include ../../defs.mk
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# No conventional target - this dir is resources only.
|
|
|
|
TARGET=
|
|
|
|
CLEANFILES += *.mak *.[co] *.lst *.a *.$(SO) $(RESFILES) *.ao README*resources.txt
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
include ../fortunedefs.mk
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# target file for resource bundle - this must be set, or 'make all' won't
|
|
|
|
# build any resources.
|
|
|
|
RESTARGET=lib$(RESNAME).$(SO)
|
2001-11-10 01:27:58 +00:00
|
|
|
|
|
|
|
# Resource files. Add new ones for additional locales here.
|
2002-05-10 20:32:34 +00:00
|
|
|
# keep in sync with the file RESLIST
|
2002-12-18 22:32:25 +00:00
|
|
|
RESFILES=$(RESNAME)_root.res $(RESNAME)_es.res
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# list of resource bundles - keep in sync with RESFILES
|
|
|
|
RESLIST=res-file-list.txt
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
## Include standard rules
|
|
|
|
include ../../rules.mk
|
2001-11-10 01:27:58 +00:00
|
|
|
|
2002-05-10 20:32:34 +00:00
|
|
|
# for installing the library
|
|
|
|
install: res-install
|
2002-12-18 22:32:25 +00:00
|
|
|
|
|
|
|
$(RESNAME)_es.res: es.txt
|
|
|
|
@echo "generating $@"
|
|
|
|
$(GENRB) $(GENRBOPT) -e latin-1 $^
|