]>
Commit | Line | Data |
---|---|---|
1 | ## Makefile.in for ICU - tools/pkgdata | |
2 | ## Copyright (C) 2016 and later: Unicode, Inc. and others. | |
3 | ## License & terms of use: http://www.unicode.org/copyright.html | |
4 | ## Copyright (c) 1999-2011, International Business Machines Corporation and | |
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 | ||
19 | TARGET_STUB_NAME = pkgdata | |
20 | ||
21 | SECTION = 1 | |
22 | ||
23 | MAN_FILES = $(TARGET_STUB_NAME).$(SECTION) | |
24 | ||
25 | ## Extra files to remove for 'make clean' | |
26 | CLEANFILES = *~ $(DEPS) $(MAN_FILES) | |
27 | ||
28 | ifneq ($(PKGDATA_DEFS),) | |
29 | DEFS += $(PKGDATA_DEFS) | |
30 | endif | |
31 | ||
32 | ## Target information | |
33 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) | |
34 | ||
35 | CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil | |
36 | DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\" | |
37 | LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
38 | ||
39 | OBJECTS = pkgdata.o pkgtypes.o | |
40 | ||
41 | DEPS = $(OBJECTS:.o=.d) | |
42 | ||
43 | ## List of phony targets | |
44 | .PHONY : all all-local install install-local clean clean-local \ | |
45 | distclean distclean-local dist dist-local check check-local install-man | |
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 | ||
58 | all-local: $(TARGET) $(MAN_FILES) | |
59 | ||
60 | install-local: all-local install-man | |
61 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) | |
62 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) | |
63 | ||
64 | install-man: $(MAN_FILES) | |
65 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
66 | $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION) | |
67 | ||
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 | ||
84 | $(TARGET) : $(OBJECTS) | |
85 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
86 | $(POST_BUILD_STEP) | |
87 | ||
88 | ||
89 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
90 | cd $(top_builddir) \ | |
91 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
92 | ||
93 | ||
94 | ifeq (,$(MAKECMDGOALS)) | |
95 | -include $(DEPS) | |
96 | else | |
97 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
98 | -include $(DEPS) | |
99 | endif | |
100 | endif | |
101 |