]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU - tools/makeconv |
374ca955 | 2 | ## Copyright (c) 1999-2004, International Business Machines Corporation and |
b75a7d8f A |
3 | ## others. All Rights Reserved. |
4 | ## Stephen F. Booth | |
5 | ||
6 | ## Source directory information | |
7 | srcdir = @srcdir@ | |
8 | top_srcdir = @top_srcdir@ | |
9 | ||
10 | top_builddir = ../.. | |
11 | ||
12 | include $(top_builddir)/icudefs.mk | |
13 | ||
14 | ## | |
15 | ||
374ca955 | 16 | TARGET_STUB_NAME = makeconv |
b75a7d8f | 17 | |
374ca955 | 18 | SECTION = 1 |
b75a7d8f | 19 | |
374ca955 | 20 | MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) |
b75a7d8f A |
21 | |
22 | ALL_MAN_FILES = $(MANX_FILES) | |
23 | ||
24 | ||
25 | ## Build directory information | |
26 | subdir = tools/makeconv | |
27 | ||
28 | ## Extra files to remove for 'make clean' | |
374ca955 | 29 | CLEANFILES = *~ $(ALL_MAN_FILES) $(DEPS) |
b75a7d8f A |
30 | |
31 | ## Target information | |
374ca955 | 32 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f A |
33 | |
34 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
35 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
36 | ||
374ca955 | 37 | OBJECTS = makeconv.o ucnvstat.o genmbcs.o gencnvex.o |
b75a7d8f A |
38 | |
39 | DEPS = $(OBJECTS:.o=.d) | |
40 | ||
41 | ||
42 | ## List of phony targets | |
43 | .PHONY : all all-local install install-local install-man clean clean-local \ | |
44 | distclean distclean-local dist dist-local check \ | |
45 | check-local | |
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) $(ALL_MAN_FILES) | |
59 | ||
60 | install-local: all-local install-man | |
61 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) | |
374ca955 | 62 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) |
b75a7d8f A |
63 | |
64 | dist-local: | |
65 | ||
66 | rebuild: $(TARGET) | |
67 | -$(RMV) | |
68 | $(MAKE) all-local | |
69 | ||
70 | clean-local: | |
71 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
72 | $(RMV) $(TARGET) $(OBJECTS) | |
73 | ||
74 | distclean-local: clean-local | |
75 | $(RMV) Makefile | |
76 | ||
77 | check-local: all-local | |
78 | ||
79 | ||
80 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
81 | cd $(top_builddir) \ | |
82 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
83 | ||
84 | $(TARGET): $(OBJECTS) | |
85 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
86 | ||
87 | install-man: install-manx | |
88 | install-manx: $(MANX_FILES) | |
89 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
90 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
91 | ||
92 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
93 | cd $(top_builddir) \ | |
94 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
95 | ||
96 | ||
97 | ifeq (,$(MAKECMDGOALS)) | |
98 | -include $(DEPS) | |
99 | else | |
100 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
101 | -include $(DEPS) | |
102 | endif | |
103 | endif |