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