]>
Commit | Line | Data |
---|---|---|
729e4ab9 | 1 | ## Makefile.in for ICU - tools/gencfu |
51004dcb | 2 | ## Copyright (c) 2009-2012 International Business Machines Corporation and |
b75a7d8f | 3 | ## others. All Rights Reserved. |
b75a7d8f A |
4 | |
5 | ## Source directory information | |
6 | srcdir = @srcdir@ | |
7 | top_srcdir = @top_srcdir@ | |
8 | ||
9 | top_builddir = ../.. | |
10 | ||
11 | include $(top_builddir)/icudefs.mk | |
12 | ||
73c04bcf | 13 | ## Build directory information |
729e4ab9 | 14 | subdir = tools/gencfu |
b75a7d8f | 15 | |
729e4ab9 | 16 | TARGET_STUB_NAME = gencfu |
374ca955 | 17 | |
729e4ab9 | 18 | SECTION = 1 |
b75a7d8f | 19 | |
51004dcb | 20 | MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) |
b75a7d8f | 21 | |
b75a7d8f A |
22 | |
23 | ## Extra files to remove for 'make clean' | |
374ca955 | 24 | CLEANFILES = *~ $(DEPS) $(MAN_FILES) |
b75a7d8f A |
25 | |
26 | ## Target information | |
374ca955 | 27 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f | 28 | |
729e4ab9 | 29 | CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil |
73c04bcf | 30 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) |
b75a7d8f | 31 | |
729e4ab9 | 32 | OBJECTS = gencfu.o |
b75a7d8f A |
33 | |
34 | DEPS = $(OBJECTS:.o=.d) | |
35 | ||
36 | ## List of phony targets | |
73c04bcf A |
37 | .PHONY : all all-local install install-local clean clean-local \ |
38 | distclean distclean-local dist dist-local check check-local install-man | |
b75a7d8f A |
39 | |
40 | ## Clear suffix list | |
41 | .SUFFIXES : | |
42 | ||
43 | ## List of standard targets | |
44 | all: all-local | |
45 | install: install-local | |
46 | clean: clean-local | |
47 | distclean : distclean-local | |
48 | dist: dist-local | |
49 | check: all check-local | |
50 | ||
374ca955 | 51 | all-local: $(TARGET) $(MAN_FILES) |
b75a7d8f A |
52 | |
53 | install-local: all-local install-man | |
729e4ab9 A |
54 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) |
55 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) | |
b75a7d8f | 56 | |
b75a7d8f | 57 | install-man: $(MAN_FILES) |
51004dcb A |
58 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) |
59 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
b75a7d8f A |
60 | |
61 | dist-local: | |
62 | ||
63 | clean-local: | |
64 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
65 | $(RMV) $(TARGET) $(OBJECTS) | |
66 | ||
67 | distclean-local: clean-local | |
68 | $(RMV) Makefile | |
69 | ||
70 | check-local: all-local | |
71 | ||
72 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
73 | cd $(top_builddir) \ | |
74 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
75 | ||
76 | $(TARGET) : $(OBJECTS) | |
73c04bcf | 77 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) |
46f4442e | 78 | $(POST_BUILD_STEP) |
73c04bcf A |
79 | |
80 | ||
81 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
82 | cd $(top_builddir) \ | |
83 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
84 | ||
b75a7d8f A |
85 | |
86 | ifeq (,$(MAKECMDGOALS)) | |
87 | -include $(DEPS) | |
88 | else | |
89 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
90 | -include $(DEPS) | |
91 | endif | |
92 | endif | |
73c04bcf | 93 |