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