]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | ## Makefile.in for ICU - tools/gennames |
374ca955 | 2 | ## Copyright (c) 1999-2004, International Business Machines Corporation and |
b75a7d8f A |
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 | ||
374ca955 A |
19 | TARGET_STUB_NAME = gennames |
20 | ||
b75a7d8f A |
21 | SECTION = 8 |
22 | ||
374ca955 | 23 | MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) |
b75a7d8f A |
24 | |
25 | ALL_MAN_FILES = $(MANX_FILES) | |
26 | ||
b75a7d8f | 27 | ## Extra files to remove for 'make clean' |
374ca955 | 28 | CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES) |
b75a7d8f A |
29 | |
30 | ## Target information | |
374ca955 | 31 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f A |
32 | |
33 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
34 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
35 | ||
36 | OBJECTS = gennames.o | |
37 | ||
38 | DEPS = $(OBJECTS:.o=.d) | |
39 | ||
40 | ## List of phony targets | |
41 | .PHONY : all all-local install install-local clean clean-local\ | |
42 | distclean distclean-local dist dist-local check \ | |
374ca955 | 43 | check-local install-man install-manx |
b75a7d8f A |
44 | |
45 | ## Clear suffix list | |
46 | .SUFFIXES : | |
47 | ||
48 | ## List of standard targets | |
49 | all: all-local | |
50 | install: install-local | |
51 | clean: clean-local | |
52 | distclean : distclean-local | |
53 | dist: dist-local | |
54 | check: all check-local | |
55 | ||
56 | all-local: $(TARGET) $(ALL_MAN_FILES) | |
57 | ||
374ca955 | 58 | install-local: all-local install-man |
b75a7d8f | 59 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) |
374ca955 | 60 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir) |
b75a7d8f A |
61 | |
62 | # man page | |
63 | install-man: install-manx | |
64 | install-manx: $(MANX_FILES) | |
65 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
66 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
67 | ||
68 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
69 | cd $(top_builddir) \ | |
70 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
71 | ||
72 | dist-local: | |
73 | ||
74 | clean-local: | |
75 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
76 | $(RMV) $(TARGET) $(OBJECTS) | |
77 | ||
78 | distclean-local: clean-local | |
79 | $(RMV) Makefile | |
80 | ||
81 | check-local: all-local | |
82 | ||
83 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
84 | cd $(top_builddir) \ | |
85 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
86 | ||
87 | $(TARGET) : $(OBJECTS) | |
88 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
89 | ||
90 | ifeq (,$(MAKECMDGOALS)) | |
91 | -include $(DEPS) | |
92 | else | |
93 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
94 | -include $(DEPS) | |
95 | endif | |
96 | endif |