]>
Commit | Line | Data |
---|---|---|
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 | |
7 | srcdir = @srcdir@ | |
8 | top_srcdir = @top_srcdir@ | |
9 | ||
10 | top_builddir = ../.. | |
11 | ||
12 | include $(top_builddir)/icudefs.mk | |
13 | ||
14 | ## Build directory information | |
15 | subdir = tools/gennames | |
16 | ||
17 | ## | |
18 | ||
19 | SECTION = 8 | |
20 | ||
21 | MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION) | |
22 | ||
23 | ALL_MAN_FILES = $(MANX_FILES) | |
24 | ||
25 | ## | |
26 | ||
27 | ICUDATADIR=$(top_builddir)/data/ | |
28 | UNICODEDATADIR=$(top_srcdir)/../data/unidata | |
29 | UNICODEFILE=$(UNICODEDATADIR)/UnicodeData.txt | |
30 | ||
31 | ## Extra files to remove for 'make clean' | |
32 | CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(ALL_MAN_FILES) | |
33 | ||
34 | ## Target information | |
35 | TARGET = gennames$(EXEEXT) | |
36 | ||
37 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
38 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
39 | ||
40 | OBJECTS = gennames.o | |
41 | ||
42 | DEPS = $(OBJECTS:.o=.d) | |
43 | ||
44 | ## List of phony targets | |
45 | .PHONY : all all-local install install-local clean clean-local\ | |
46 | distclean distclean-local dist dist-local check \ | |
47 | check-local build-data install-man install-manx | |
48 | ||
49 | ## Clear suffix list | |
50 | .SUFFIXES : | |
51 | ||
52 | ## List of standard targets | |
53 | all: all-local | |
54 | install: install-local | |
55 | clean: clean-local | |
56 | distclean : distclean-local | |
57 | dist: dist-local | |
58 | check: all check-local | |
59 | ||
60 | all-local: $(TARGET) $(ALL_MAN_FILES) | |
61 | ||
62 | install-local: all-local build-data install-man | |
63 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | |
64 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET) | |
65 | ||
66 | # man page | |
67 | install-man: install-manx | |
68 | install-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 | ||
76 | dist-local: | |
77 | ||
78 | clean-local: | |
79 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
80 | $(RMV) $(TARGET) $(OBJECTS) | |
81 | ||
82 | distclean-local: clean-local | |
83 | $(RMV) Makefile | |
84 | ||
85 | check-local: all-local | |
86 | ||
87 | Makefile: $(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 | ||
94 | ifeq (,$(MAKECMDGOALS)) | |
95 | -include $(DEPS) | |
96 | else | |
97 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
98 | -include $(DEPS) | |
99 | endif | |
100 | endif |