1 ## Makefile.in for ICU - tools/genrb
2 ## Copyright (c) 1999-2004, International Business Machines Corporation and
3 ## others. All Rights Reserved.
5 ## Source directory information
7 top_srcdir = @top_srcdir@
11 include $(top_builddir)/icudefs.mk
15 TARGET_STUB_NAME = genrb
20 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
22 ## Build directory information
25 ## Extra files to remove for 'make clean'
26 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
29 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
30 DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
32 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
33 LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
35 OBJECTS = errmsg.o genrb.o parse.o read.o reslist.o ustr.o util.o \
36 wrtjava.o rle.o wrtxml.o prscmnts.o
39 DEPS = $(OBJECTS:.o=.d)
40 DERB_DEPS = $(DERB_OBJ:.o=.d)
42 ## List of phony targets
43 .PHONY : all all-local install install-local clean clean-local \
44 distclean distclean-local dist dist-local check \
45 check-local install-man
50 ## List of standard targets
52 install: install-local
54 distclean : distclean-local
56 check: all check-local
58 all-local: $(TARGET) $(DERB) $(MAN_FILES)
60 install-local: all-local install-man
61 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
62 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
63 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
68 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
69 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
71 distclean-local: clean-local
74 check-local: all-local
76 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
78 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
80 $(TARGET) : $(OBJECTS)
81 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
84 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
87 # the 'mv' will always fail if you are building in the source dir
90 install-man: $(MAN_FILES)
91 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
92 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
94 # This line is needed to serialize builds when the gmake -j option is used.
95 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
97 %.$(SECTION): $(srcdir)/%.$(SECTION).in
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
101 # build postscript and pdf formats
102 $(TARGET).ps: $(TARGET).$(SECTION)
105 $(TARGET).pdf: $(TARGET).ps
108 ifeq (,$(MAKECMDGOALS))
110 -include $(DERB_DEPS)
112 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)