1 ## Makefile.in for ICU - tools/genccode
2 ## Copyright (c) 1999-2003, International Business Machines Corporation and
3 ## others. All Rights Reserved.
6 ## Source directory information
8 top_srcdir = @top_srcdir@
12 include $(top_builddir)/icudefs.mk
14 ## Build directory information
15 subdir = tools/genccode
21 MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
23 ALL_MAN_FILES = $(MANX_FILES)
25 ## Extra files to remove for 'make clean'
26 CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(ALL_MAN_FILES)
29 TARGET = genccode$(EXEEXT)
31 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
32 LIBS = $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) $(LIBICUTOOLUTIL)
36 DEPS = $(OBJECTS:.o=.d)
38 ## List of phony targets
39 .PHONY : all all-local install install-local clean clean-local \
40 distclean distclean-local dist dist-local check \
41 check-local install-man install-manx
46 ## List of standard targets
48 install: install-local
50 distclean : distclean-local
52 check: all check-local
54 all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) $(ALL_MAN_FILES)
56 install-local: all-local install-man
57 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
58 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
61 install-man: install-manx
62 install-manx: $(MANX_FILES)
63 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
64 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
66 %.$(SECTION): $(srcdir)/%.$(SECTION).in
68 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
73 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
74 $(RMV) $(TARGET) $(OBJECTS)
76 distclean-local: clean-local
79 check-local: all-local
81 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
83 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
85 $(TARGET) : $(OBJECTS)
86 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
88 ifeq (,$(MAKECMDGOALS))
91 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)