]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/pkgdata/Makefile.in
ICU-66108.tar.gz
[apple/icu.git] / icuSources / tools / pkgdata / Makefile.in
CommitLineData
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
9srcdir = @srcdir@
10top_srcdir = @top_srcdir@
11
12top_builddir = ../..
13
14include $(top_builddir)/icudefs.mk
15
16## Build directory information
17subdir = tools/pkgdata
18
374ca955
A
19TARGET_STUB_NAME = pkgdata
20
b75a7d8f
A
21SECTION = 1
22
73c04bcf 23MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
b75a7d8f
A
24
25## Extra files to remove for 'make clean'
73c04bcf 26CLEANFILES = *~ $(DEPS) $(MAN_FILES)
374ca955
A
27
28ifneq ($(PKGDATA_DEFS),)
29DEFS += $(PKGDATA_DEFS)
30endif
b75a7d8f
A
31
32## Target information
374ca955 33TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
b75a7d8f 34
f3c0d7a5 35CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(srcdir)/../toolutil
b75a7d8f 36DEFS += -DUDATA_SO_SUFFIX=\".$(SO)\" -DSTATIC_O=\"$(STATIC_O)\"
73c04bcf 37LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
b75a7d8f 38
729e4ab9 39OBJECTS = pkgdata.o pkgtypes.o
b75a7d8f
A
40
41DEPS = $(OBJECTS:.o=.d)
42
43## List of phony targets
374ca955 44.PHONY : all all-local install install-local clean clean-local \
73c04bcf 45distclean 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
51all: all-local
52install: install-local
53clean: clean-local
54distclean : distclean-local
55dist: dist-local
56check: all check-local
57
73c04bcf 58all-local: $(TARGET) $(MAN_FILES)
b75a7d8f
A
59
60install-local: all-local install-man
61 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
374ca955 62 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
b75a7d8f 63
73c04bcf 64install-man: $(MAN_FILES)
b75a7d8f
A
65 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
66 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
67
b75a7d8f
A
68
69dist-local:
70
71clean-local:
72 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
73 $(RMV) $(TARGET) $(OBJECTS)
74
75distclean-local: clean-local
76 $(RMV) Makefile
77
78check-local: all-local
79
80Makefile: $(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
94ifeq (,$(MAKECMDGOALS))
95-include $(DEPS)
96else
97ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98-include $(DEPS)
99endif
100endif
73c04bcf 101