Debian Codegraph @

intl/icu/source/tools/pkgdata/Makefile.in

raw
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 SOURCES = $(shell cat $(srcdir)/sources.txt)
40 OBJECTS = $(patsubst %.cpp,%.o,$(patsubst %.c,%.o, $(SOURCES)))
41
42 DEPS = $(OBJECTS:.o=.d)
43
44 ## List of phony targets
45 .PHONY : all all-local install install-local clean clean-local \
46 distclean distclean-local dist dist-local check check-local install-man
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
59 all-local: $(TARGET) $(MAN_FILES)
60
61 install-local: all-local install-man
62 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
63 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
64
65 install-man: $(MAN_FILES)
66 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
67 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
68
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
85 $(TARGET) : $(OBJECTS)
86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
87 $(POST_BUILD_STEP)
88
89
90 %.$(SECTION): $(srcdir)/%.$(SECTION).in
91 cd $(top_builddir) \
92 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
93
94
95 ifeq (,$(MAKECMDGOALS))
96 -include $(DEPS)
97 else
98 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
99 -include $(DEPS)
100 endif
101 endif
102