]>
Commit | Line | Data |
---|---|---|
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 | |
6 | srcdir = @srcdir@ | |
7 | top_srcdir = @top_srcdir@ | |
8 | ||
9 | top_builddir = ../.. | |
10 | ||
11 | include $(top_builddir)/icudefs.mk | |
12 | ||
13 | ## | |
14 | ||
374ca955 A |
15 | TARGET_STUB_NAME = genrb |
16 | DERB_STUB_NAME = derb | |
17 | ||
b75a7d8f A |
18 | SECTION = 1 |
19 | ||
374ca955 | 20 | MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DERB_STUB_NAME).$(SECTION) |
b75a7d8f A |
21 | |
22 | ## Build directory information | |
23 | subdir = tools/genrb | |
24 | ||
25 | ## Extra files to remove for 'make clean' | |
374ca955 | 26 | CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS) |
b75a7d8f A |
27 | |
28 | ## Target information | |
374ca955 A |
29 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
30 | DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT) | |
b75a7d8f A |
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 \ | |
374ca955 | 36 | wrtjava.o rle.o wrtxml.o prscmnts.o |
b75a7d8f A |
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 | ||
374ca955 | 65 | dist-local: |
b75a7d8f A |
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) | |
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 | |
90 | install-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 | ||
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 |