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