1 # Copyright (c) 2001-2002 IBM, Inc. and others
4 # icu/source/samples/ufortune/resources/Makefile
7 # See the instructions in the parent Makefile,
8 # icu/source/samples/ufortune/Makefile.
9 # This subproject builds the ICU resource files for ufortune.
10 # It is normally invoked from the parent directory,
11 # although the resources can be built from here.
13 # Two ICU tools are run from this makefile:
14 # genrb compiles a resource source file (.txt) into
16 # pkgdata combines all of the .res files into a single
17 # shared library that can then be linked with the
20 # pkgdata will recursively generate and run yet
21 # another makefile, which in turn runs two more
22 # icu tools. gencmn combines the individual .res
23 # files, and genccode emits the data as C source
24 # code that can then be built into a .so
29 # No conventional target - this dir is resources only.
31 CLEANFILES += *.mak *.[co] *.lst *.a *.$(SO) $(RESFILES) *.ao README*resources.txt
33 include ../fortunedefs.mk
35 # target file for resource bundle - this must be set, or 'make all' won't
36 # build any resources.
37 RESTARGET=lib$(RESNAME).$(SO)
39 # Resource files. Add new ones for additional locales here.
40 # keep in sync with the file RESLIST
41 RESFILES=$(RESNAME)_root.res $(RESNAME)_es.res
43 # list of resource bundles - keep in sync with RESFILES
44 RESLIST=res-file-list.txt
46 ## Include standard rules
47 include ../../rules.mk
49 # for installing the library
52 $(RESNAME)_es.res: es.txt
54 $(GENRB) $(GENRBOPT) -e latin-1 $^