]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/gennames/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / tools / gennames / Makefile.in
CommitLineData
b75a7d8f
A
1## Makefile.in for ICU - tools/gennames
2## Copyright (c) 1999-2003, International Business Machines Corporation and
3## others. All Rights Reserved.
4## Steven R. Loomi
5
6## Install directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14## Build directory information
15subdir = tools/gennames
16
17##
18
19SECTION = 8
20
21MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
22
23ALL_MAN_FILES = $(MANX_FILES)
24
25##
26
27ICUDATADIR=$(top_builddir)/data/
28UNICODEDATADIR=$(top_srcdir)/../data/unidata
29UNICODEFILE=$(UNICODEDATADIR)/UnicodeData.txt
30
31## Extra files to remove for 'make clean'
32CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(ALL_MAN_FILES)
33
34## Target information
35TARGET = gennames$(EXEEXT)
36
37CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
38LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
39
40OBJECTS = gennames.o
41
42DEPS = $(OBJECTS:.o=.d)
43
44## List of phony targets
45.PHONY : all all-local install install-local clean clean-local\
46distclean distclean-local dist dist-local check \
47check-local build-data install-man install-manx
48
49## Clear suffix list
50.SUFFIXES :
51
52## List of standard targets
53all: all-local
54install: install-local
55clean: clean-local
56distclean : distclean-local
57dist: dist-local
58check: all check-local
59
60all-local: $(TARGET) $(ALL_MAN_FILES)
61
62install-local: all-local build-data install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
64 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
65
66# man page
67install-man: install-manx
68install-manx: $(MANX_FILES)
69 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
70 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
71
72%.$(SECTION): $(srcdir)/%.$(SECTION).in
73 cd $(top_builddir) \
74 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
75
76dist-local:
77
78clean-local:
79 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
80 $(RMV) $(TARGET) $(OBJECTS)
81
82distclean-local: clean-local
83 $(RMV) Makefile
84
85check-local: all-local
86
87Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
88 cd $(top_builddir) \
89 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
90
91$(TARGET) : $(OBJECTS)
92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
93
94ifeq (,$(MAKECMDGOALS))
95-include $(DEPS)
96else
97ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98-include $(DEPS)
99endif
100endif