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.
11 ## Source directory information
13 top_srcdir = @top_srcdir@
17 include $(top_builddir)/icudefs.mk
19 ## Build directory information
20 subdir = tools/escapesrc
22 TARGET_STUB_NAME = escapesrc
26 #MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
28 ## Extra files to remove for 'make clean'
29 CLEANFILES = *~ $(DEPS) $(MAN_FILES) ./output-*.cpp
32 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
34 CPPFLAGS += -I$(top_srcdir)/common -I$(srcdir)/../toolutil
35 #LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC)
36 LIBS += $(DEFAULT_LIBS) $(LIB_M)
40 DEPS = $(OBJECTS:.o=.d)
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
49 ## List of standard targets
51 install: install-local
53 distclean : distclean-local
55 check: all check-local
57 all-local: $(TARGET) $(MAN_FILES)
59 install-local: all-local install-man
60 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
61 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
63 install-man: $(MAN_FILES)
64 # $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
65 # $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
71 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
72 $(RMV) $(TARGET) $(OBJECTS)
74 distclean-local: clean-local
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)
85 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
87 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
89 $(TARGET) : $(OBJECTS)
90 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
94 %.$(SECTION): $(srcdir)/%.$(SECTION).in
96 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
98 # depends on ICU being built
99 gen-table: tblgen$(EXEEXT)
100 $(INVOKE) ./tblgen$(EXEEXT) > $(srcdir)/cptbl.h
102 tblgen$(EXEEXT): tblgen.o
103 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) $(LIBICUUC)
105 ifeq (,$(MAKECMDGOALS))
108 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)