• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Makefile.in for ICU - tools/genuca
2#
3# Copyright (C) 2017 and later: Unicode, Inc. and others.
4# License & terms of use: http://www.unicode.org/copyright.html
5#
6## Copyright (c) 1999-2008, International Business Machines Corporation and
7## others. All Rights Reserved.
8
9## Source directory information
10srcdir = @srcdir@
11top_srcdir = @top_srcdir@
12
13top_builddir = ../..
14
15include $(top_builddir)/icudefs.mk
16
17## Build directory information
18subdir = tools/genuca
19
20TARGET_STUB_NAME = genuca
21
22SECTION = 8
23
24MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
25
26
27## Extra files to remove for 'make clean'
28CLEANFILES = *~ $(DEPS) $(MAN_FILES)
29
30## Target information
31TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
32
33ifneq ($(top_builddir),$(top_srcdir))
34CPPFLAGS += -I$(top_builddir)/common
35endif
36CPPFLAGS += -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil
37LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
38
39OBJECTS = genuca.o
40
41DEPS = $(OBJECTS:.o=.d)
42
43## List of phony targets
44.PHONY : all all-local install install-local clean clean-local	\
45distclean distclean-local dist dist-local check check-local install-man
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
58all-local: $(TARGET) $(MAN_FILES)
59
60install-local: all-local install-man
61	$(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
62	$(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
63
64install-man: $(MAN_FILES)
65	$(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
66	$(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
67
68dist-local:
69
70clean-local:
71	test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
72	$(RMV) $(TARGET) $(OBJECTS)
73
74distclean-local: clean-local
75	$(RMV) Makefile
76
77check-local: all-local
78
79Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
80	cd $(top_builddir) \
81	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
82
83$(TARGET) : $(OBJECTS)
84	$(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
85	$(POST_BUILD_STEP)
86
87
88%.$(SECTION): $(srcdir)/%.$(SECTION).in
89	cd $(top_builddir) \
90	 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
91
92
93ifeq (,$(MAKECMDGOALS))
94-include $(DEPS)
95else
96ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
97-include $(DEPS)
98endif
99endif
100
101