1 ## Makefile.in for ICU - tools/gennames
2 ## Copyright (c) 1999-2003, International Business Machines Corporation and
3 ## others. All Rights Reserved.
6 ## Install directory information
8 top_srcdir = @top_srcdir@
12 include $(top_builddir)/icudefs.mk
14 ## Build directory information
15 subdir = tools/gennames
21 MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
23 ALL_MAN_FILES = $(MANX_FILES)
27 ICUDATADIR=$(top_builddir)/data/
28 UNICODEDATADIR=$(top_srcdir)/../data/unidata
29 UNICODEFILE=$(UNICODEDATADIR)/UnicodeData.txt
31 ## Extra files to remove for 'make clean'
32 CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(ALL_MAN_FILES)
35 TARGET = gennames$(EXEEXT)
37 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
38 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
42 DEPS = $(OBJECTS:.o=.d)
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
52 ## List of standard targets
54 install: install-local
56 distclean : distclean-local
58 check: all check-local
60 all-local: $(TARGET) $(ALL_MAN_FILES)
62 install-local: all-local build-data install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
64 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
67 install-man: install-manx
68 install-manx: $(MANX_FILES)
69 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
70 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
72 %.$(SECTION): $(srcdir)/%.$(SECTION).in
74 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
79 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
80 $(RMV) $(TARGET) $(OBJECTS)
82 distclean-local: clean-local
85 check-local: all-local
87 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
89 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
91 $(TARGET) : $(OBJECTS)
92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
94 ifeq (,$(MAKECMDGOALS))
97 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)