]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/tools/makeconv/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / tools / makeconv / Makefile.in
... / ...
CommitLineData
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
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14##
15
16SECTION = 1
17
18MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
19
20GENERATED_MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
21
22ALL_MAN_FILES = $(MANX_FILES)
23
24
25## Build directory information
26subdir = tools/makeconv
27
28## Extra files to remove for 'make clean'
29CLEANFILES = *~ $(GENERATED_MAN_FILES) $(DEPS) $(CNV_FILES) $(TEST_CNV_FILES)
30
31## Target information
32TARGET = makeconv$(EXEEXT)
33
34CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
35LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
36
37OBJECTS = makeconv.o ucnvstat.o genmbcs.o
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)
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
69dist-local:
70
71rebuild: $(TARGET)
72 -$(RMV)
73 $(MAKE) all-local
74
75clean-local:
76 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
77 $(RMV) $(TARGET) $(OBJECTS)
78
79distclean-local: clean-local
80 $(RMV) Makefile
81
82check-local: all-local
83
84
85Makefile: $(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
92install-man: install-manx
93install-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
102ifeq (,$(MAKECMDGOALS))
103-include $(DEPS)
104else
105ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
106-include $(DEPS)
107endif
108endif