]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genrb/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / tools / genrb / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - tools/genrb
374ca955 2## Copyright (c) 1999-2004, International Business Machines Corporation and
b75a7d8f
A
3## others. All Rights Reserved.
4
5## Source directory information
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8
9top_builddir = ../..
10
11include $(top_builddir)/icudefs.mk
12
13##
14
374ca955
A
15TARGET_STUB_NAME = genrb
16DERB_STUB_NAME = derb
17
b75a7d8f
A
18SECTION = 1
19
374ca955 20MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
b75a7d8f
A
21
22## Build directory information
23subdir = tools/genrb
24
25## Extra files to remove for 'make clean'
374ca955 26CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
b75a7d8f
A
27
28## Target information
374ca955
A
29TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
30DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
b75a7d8f
A
31
32CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
33LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
34
35OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o util.o \
374ca955 36wrtjava.o rle.o wrtxml.o prscmnts.o
b75a7d8f
A
37DERB_OBJ = derb.o
38
39DEPS = $(OBJECTS:.o=.d)
40DERB_DEPS = $(DERB_OBJ:.o=.d)
41
42## List of phony targets
43.PHONY : all all-local install install-local clean clean-local \
44distclean distclean-local dist dist-local check \
45check-local install-man
46
47## Clear suffix list
48.SUFFIXES :
49
50## List of standard targets
51all: all-local
52install: install-local
53clean: clean-local
54distclean : distclean-local
55dist: dist-local
56check: all check-local
57
58all-local: $(TARGET) $(DERB) $(MAN_FILES)
59
60install-local: all-local install-man
61 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
62 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
63 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
64
374ca955 65dist-local:
b75a7d8f
A
66
67clean-local:
68 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
69 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
70
71distclean-local: clean-local
72 $(RMV) Makefile
73
74check-local: all-local
75
76Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
77 cd $(top_builddir) \
78 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
79
80$(TARGET) : $(OBJECTS)
374ca955 81 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
b75a7d8f
A
82
83$(DERB) : $(DERB_OBJ)
84 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
85
86
87# the 'mv' will always fail if you are building in the source dir
88
89# man page
90install-man: $(MAN_FILES)
91 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
374ca955
A
92 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
93
94# This line is needed to serialize builds when the gmake -j option is used.
95$(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
b75a7d8f
A
96
97%.$(SECTION): $(srcdir)/%.$(SECTION).in
98 cd $(top_builddir) \
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
100
101# build postscript and pdf formats
102$(TARGET).ps: $(TARGET).$(SECTION)
103 groff -man < $< > $@
104
105$(TARGET).pdf: $(TARGET).ps
106 ps2pdf $< $@
107
108ifeq (,$(MAKECMDGOALS))
109-include $(DEPS)
110-include $(DERB_DEPS)
111else
112ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
113-include $(DEPS)
114endif
115endif
116