]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genccode/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / tools / genccode / Makefile.in
1 ## Makefile.in for ICU - tools/genccode
2 ## Copyright (c) 1999-2003, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4 ## Steven R. Loomis
5
6 ## Source directory information
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ## Build directory information
15 subdir = tools/genccode
16
17 ##
18
19 SECTION = 8
20
21 MANX_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
22
23 ALL_MAN_FILES = $(MANX_FILES)
24
25 ## Extra files to remove for 'make clean'
26 CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(ALL_MAN_FILES)
27
28 ## Target information
29 TARGET = genccode$(EXEEXT)
30
31 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
32 LIBS = $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) $(LIBICUTOOLUTIL)
33
34 OBJECTS = genccode.o
35
36 DEPS = $(OBJECTS:.o=.d)
37
38 ## List of phony targets
39 .PHONY : all all-local install install-local clean clean-local \
40 distclean distclean-local dist dist-local check \
41 check-local install-man install-manx
42
43 ## Clear suffix list
44 .SUFFIXES :
45
46 ## List of standard targets
47 all: all-local
48 install: install-local
49 clean: clean-local
50 distclean : distclean-local
51 dist: dist-local
52 check: all check-local
53
54 all-local: $(TARGET) $(RES_FILES) $(TRANSLIT_RES) $(TEST_FILES) $(ALL_MAN_FILES)
55
56 install-local: all-local install-man
57 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
58 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
59
60 # man page
61 install-man: install-manx
62 install-manx: $(MANX_FILES)
63 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
64 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
65
66 %.$(SECTION): $(srcdir)/%.$(SECTION).in
67 cd $(top_builddir) \
68 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
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.c) $(OUTOPT)$@ $^ $(LIBS)
87
88 ifeq (,$(MAKECMDGOALS))
89 -include $(DEPS)
90 else
91 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
92 -include $(DEPS)
93 endif
94 endif