]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/makeconv/Makefile.in
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / tools / makeconv / Makefile.in
CommitLineData
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
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14##
15
374ca955 16TARGET_STUB_NAME = makeconv
b75a7d8f 17
374ca955 18SECTION = 1
b75a7d8f 19
374ca955 20MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
b75a7d8f
A
21
22ALL_MAN_FILES = $(MANX_FILES)
23
24
25## Build directory information
26subdir = tools/makeconv
27
28## Extra files to remove for 'make clean'
374ca955 29CLEANFILES = *~ $(ALL_MAN_FILES) $(DEPS)
b75a7d8f
A
30
31## Target information
374ca955 32TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
b75a7d8f
A
33
34CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
35LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
36
374ca955 37OBJECTS = makeconv.o ucnvstat.o genmbcs.o gencnvex.o
b75a7d8f
A
38
39DEPS = $(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
51all: all-local
52install: install-local
53clean: clean-local
54distclean : distclean-local
55dist: dist-local
56check: all check-local
57
58all-local: $(TARGET) $(ALL_MAN_FILES)
59
60install-local: all-local install-man
61 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
374ca955 62 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
b75a7d8f
A
63
64dist-local:
65
66rebuild: $(TARGET)
67 -$(RMV)
68 $(MAKE) all-local
69
70clean-local:
71 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
72 $(RMV) $(TARGET) $(OBJECTS)
73
74distclean-local: clean-local
75 $(RMV) Makefile
76
77check-local: all-local
78
79
80Makefile: $(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
87install-man: install-manx
88install-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
97ifeq (,$(MAKECMDGOALS))
98-include $(DEPS)
99else
100ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
101-include $(DEPS)
102endif
103endif