]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genrb/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / tools / genrb / Makefile.in
1 ## Makefile.in for ICU - tools/genrb
2 ## Copyright (c) 1999-2004, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4
5 ## Source directory information
6 srcdir = @srcdir@
7 top_srcdir = @top_srcdir@
8
9 top_builddir = ../..
10
11 include $(top_builddir)/icudefs.mk
12
13 ##
14
15 TARGET_STUB_NAME = genrb
16 DERB_STUB_NAME = derb
17
18 SECTION = 1
19
20 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION)
21
22 ## Build directory information
23 subdir = tools/genrb
24
25 ## Extra files to remove for 'make clean'
26 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
27
28 ## Target information
29 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
30 DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
31
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)
34
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
37 DERB_OBJ = derb.o
38
39 DEPS = $(OBJECTS:.o=.d)
40 DERB_DEPS = $(DERB_OBJ:.o=.d)
41
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
46
47 ## Clear suffix list
48 .SUFFIXES :
49
50 ## List of standard targets
51 all: all-local
52 install: install-local
53 clean: clean-local
54 distclean : distclean-local
55 dist: dist-local
56 check: all check-local
57
58 all-local: $(TARGET) $(DERB) $(MAN_FILES)
59
60 install-local: all-local install-man
61 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
62 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
63 $(INSTALL) $(DERB) $(DESTDIR)$(bindir)
64
65 dist-local:
66
67 clean-local:
68 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
69 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
70
71 distclean-local: clean-local
72 $(RMV) Makefile
73
74 check-local: all-local
75
76 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
77 cd $(top_builddir) \
78 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
79
80 $(TARGET) : $(OBJECTS)
81 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
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
90 install-man: $(MAN_FILES)
91 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
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)
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
108 ifeq (,$(MAKECMDGOALS))
109 -include $(DEPS)
110 -include $(DERB_DEPS)
111 else
112 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
113 -include $(DEPS)
114 endif
115 endif
116