]> git.saurik.com Git - apple/icu.git/blob - icuSources/samples/ufortune/resources/Makefile
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / samples / ufortune / resources / Makefile
1 # Copyright (c) 2001-2002 IBM, Inc. and others
2 #
3 # File
4 # icu/source/samples/ufortune/resources/Makefile
5 #
6 # Usage:
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.
12 #
13 # Two ICU tools are run from this makefile:
14 # genrb compiles a resource source file (.txt) into
15 # a binary .res file.
16 # pkgdata combines all of the .res files into a single
17 # shared library that can then be linked with the
18 # main application.
19 #
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
25 #
26
27 include ../../defs.mk
28
29 # No conventional target - this dir is resources only.
30 TARGET=
31 CLEANFILES += *.mak *.[co] *.lst *.a *.$(SO) $(RESFILES) *.ao README*resources.txt
32
33 include ../fortunedefs.mk
34
35 # target file for resource bundle - this must be set, or 'make all' won't
36 # build any resources.
37 RESTARGET=lib$(RESNAME).$(SO)
38
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
42
43 # list of resource bundles - keep in sync with RESFILES
44 RESLIST=res-file-list.txt
45
46 ## Include standard rules
47 include ../../rules.mk
48
49 # for installing the library
50 install: res-install
51
52 $(RESNAME)_es.res: es.txt
53 @echo "generating $@"
54 $(GENRB) $(GENRBOPT) -e latin-1 $^