]>
Commit | Line | Data |
---|---|---|
1 | ## Makefile.in for ICU - tools/makeconv | |
2 | ## Copyright (c) 1999-2003, International Business Machines Corporation and | |
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 | ||
16 | SECTION = 1 | |
17 | ||
18 | MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION) | |
19 | ||
20 | GENERATED_MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION) | |
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' | |
29 | CLEANFILES = *~ $(GENERATED_MAN_FILES) $(DEPS) $(CNV_FILES) $(TEST_CNV_FILES) | |
30 | ||
31 | ## Target information | |
32 | TARGET = makeconv$(EXEEXT) | |
33 | ||
34 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
35 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
36 | ||
37 | OBJECTS = makeconv.o ucnvstat.o genmbcs.o | |
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) | |
62 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET) | |
63 | # $(MKINSTALLDIRS) $(DESTDIR)$(pkglibdir) | |
64 | # @list='$(notdir $(CNV_FILES)) convrtrs.txt'; for file in $$list; do \ | |
65 | # echo $(INSTALL_DATA) $(top_builddir)/data/$$file $(DESTDIR)$(pkglibdir)/$$file; \ | |
66 | # $(INSTALL_DATA) $(top_builddir)/data/$$file $(DESTDIR)$(pkglibdir)/$$file; \ | |
67 | # done | |
68 | ||
69 | dist-local: | |
70 | ||
71 | rebuild: $(TARGET) | |
72 | -$(RMV) | |
73 | $(MAKE) all-local | |
74 | ||
75 | clean-local: | |
76 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
77 | $(RMV) $(TARGET) $(OBJECTS) | |
78 | ||
79 | distclean-local: clean-local | |
80 | $(RMV) Makefile | |
81 | ||
82 | check-local: all-local | |
83 | ||
84 | ||
85 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
86 | cd $(top_builddir) \ | |
87 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
88 | ||
89 | $(TARGET): $(OBJECTS) | |
90 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
91 | ||
92 | install-man: install-manx | |
93 | install-manx: $(MANX_FILES) | |
94 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
95 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
96 | ||
97 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
98 | cd $(top_builddir) \ | |
99 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
100 | ||
101 | ||
102 | ifeq (,$(MAKECMDGOALS)) | |
103 | -include $(DEPS) | |
104 | else | |
105 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
106 | -include $(DEPS) | |
107 | endif | |
108 | endif |