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