7155eb7e31
X-SVN-Rev: 10739
55 lines
1.7 KiB
Makefile
55 lines
1.7 KiB
Makefile
# Copyright (c) 2001-2002 IBM, Inc. and others
|
|
#
|
|
# File
|
|
# icu/source/samples/ufortune/resources/Makefile
|
|
#
|
|
# Usage:
|
|
# See the instructions in the parent Makefile,
|
|
# icu/source/samples/ufortune/Makefile.
|
|
# This subproject builds the ICU resource files for ufortune.
|
|
# 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
|
|
#
|
|
|
|
include ../../defs.mk
|
|
|
|
# No conventional target - this dir is resources only.
|
|
TARGET=
|
|
CLEANFILES += *.mak *.[co] *.lst *.a *.$(SO) $(RESFILES) *.ao README*resources.txt
|
|
|
|
include ../fortunedefs.mk
|
|
|
|
# target file for resource bundle - this must be set, or 'make all' won't
|
|
# build any resources.
|
|
RESTARGET=lib$(RESNAME).$(SO)
|
|
|
|
# Resource files. Add new ones for additional locales here.
|
|
# keep in sync with the file RESLIST
|
|
RESFILES=$(RESNAME)_root.res $(RESNAME)_es.res
|
|
|
|
# list of resource bundles - keep in sync with RESFILES
|
|
RESLIST=res-file-list.txt
|
|
|
|
## Include standard rules
|
|
include ../../rules.mk
|
|
|
|
# for installing the library
|
|
install: res-install
|
|
|
|
$(RESNAME)_es.res: es.txt
|
|
@echo "generating $@"
|
|
$(GENRB) $(GENRBOPT) -e latin-1 $^
|