]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/escapesrc/Makefile.in
ICU-66108.tar.gz
[apple/icu.git] / icuSources / tools / escapesrc / Makefile.in
1 ## Makefile.in for ICU - tools/escapesrc
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 # To avoid recursion
9 SKIP_ESCAPING=YES
10
11 ## Source directory information
12 srcdir = @srcdir@
13 top_srcdir = @top_srcdir@
14
15 top_builddir = ../..
16
17 include $(top_builddir)/icudefs.mk
18
19 ## Build directory information
20 subdir = tools/escapesrc
21
22 TARGET_STUB_NAME = escapesrc
23
24 SECTION = 8
25
26 #MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
27
28 ## Extra files to remove for 'make clean'
29 CLEANFILES = *~ $(DEPS) $(MAN_FILES) ./output-*.cpp
30
31 ## Target information
32 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33
34 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil
35 #LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC)
36 LIBS += $(DEFAULT_LIBS) $(LIB_M)
37
38 OBJECTS = escapesrc.o
39
40 DEPS = $(OBJECTS:.o=.d)
41
42 ## List of phony targets
43 .PHONY : all all-local install install-local clean clean-local \
44 distclean distclean-local dist dist-local check check-local install-man
45
46 ## Clear suffix list
47 .SUFFIXES :
48
49 ## List of standard targets
50 all: all-local
51 install: install-local
52 clean: clean-local
53 distclean : distclean-local
54 dist: dist-local
55 check: all check-local
56
57 all-local: $(TARGET) $(MAN_FILES)
58
59 install-local: all-local install-man
60 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
61 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
62
63 install-man: $(MAN_FILES)
64 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
65 # $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
66
67
68 dist-local:
69
70 clean-local:
71 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
72 $(RMV) $(TARGET) $(OBJECTS)
73
74 distclean-local: clean-local
75 $(RMV) Makefile
76
77 check-local: all-local
78 @echo Testing test-nochange.cpp
79 @$(INVOKE) $(TARGET) $(srcdir)/test-nochange.cpp ./output-nochange.cpp
80 @-diff -I '#line.*' $(srcdir)/test-nochange.cpp ./output-nochange.cpp || (echo >&2 'warning: diff failed or not found' ; true)
81 @echo Testing test-simple.cpp
82 @$(INVOKE) $(TARGET) $(srcdir)/test-simple.cpp ./output-simple.cpp
83 @-diff -I '#line.*' $(srcdir)/expect-simple.cpp ./output-simple.cpp || (echo >&2 'warning: diff failed or not found' ; true)
84
85 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
86 cd $(top_builddir) \
87 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
88
89 $(TARGET) : $(OBJECTS)
90 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
91 $(POST_BUILD_STEP)
92
93
94 %.$(SECTION): $(srcdir)/%.$(SECTION).in
95 cd $(top_builddir) \
96 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
97
98 # depends on ICU being built
99 gen-table: tblgen$(EXEEXT)
100 $(INVOKE) ./tblgen$(EXEEXT) > $(srcdir)/cptbl.h
101
102 tblgen$(EXEEXT): tblgen.o
103 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) $(LIBICUUC)
104
105 ifeq (,$(MAKECMDGOALS))
106 -include $(DEPS)
107 else
108 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
109 -include $(DEPS)
110 endif
111 endif
112