]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/tools/gencmn/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / tools / gencmn / Makefile.in
... / ...
CommitLineData
1## Makefile.in for ICU - tools/gencmn
2## Copyright (c) 1999-2004, International Business Machines Corporation and
3## others. All Rights Reserved.
4## Steven R. Loomis
5
6## Source directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14## Build directory information
15subdir = tools/gencmn
16
17##
18
19TARGET_STUB_NAME = gencmn
20DECMN_STUB_NAME = decmn
21
22SECTION = 8
23
24MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) $(DECMN_STUB_NAME).$(SECTION)
25
26ALL_MAN_FILES = $(MANX_FILES)
27
28## Extra files to remove for 'make clean'
29CLEANFILES = *~ $(DEPS) $(DECMN_DEP) $(ALL_MAN_FILES)
30
31## Target information
32TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
33DECMN = $(BINDIR)/$(DECMN_STUB_NAME)$(EXEEXT)
34
35CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
36LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
37
38OBJECTS = gencmn.o
39DECMN_OBJ = decmn.o
40
41DEPS = $(OBJECTS:.o=.d)
42DECMN_DEP = $(DECMN_OBJ:.o=.d)
43
44## List of phony targets
45.PHONY : all all-local install install-local clean clean-local \
46distclean distclean-local dist dist-local check \
47check-local install-man install-manx
48
49## Clear suffix list
50.SUFFIXES :
51
52## List of standard targets
53all: all-local
54install: install-local
55clean: clean-local
56distclean : distclean-local
57dist: dist-local
58check: all check-local
59
60all-local: $(TARGET) $(DECMN) $(ALL_MAN_FILES)
61
62install-local: all-local install-man
63 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
64 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
65 $(INSTALL) $(DECMN) $(DESTDIR)$(sbindir)
66
67dist-local:
68
69clean-local:
70 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
71 $(RMV) $(TARGET) $(OBJECTS) $(DECMN) $(DECMN_OBJ)
72
73distclean-local: clean-local
74 $(RMV) Makefile
75
76check-local: all-local
77
78Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
79 cd $(top_builddir) \
80 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
81
82$(TARGET) : $(OBJECTS)
83 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
84
85$(DECMN) : $(DECMN_OBJ)
86 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
87
88# man page
89install-man: install-manx
90install-manx: $(MANX_FILES)
91 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
92 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
93
94# This line is needed to serialize builds when the gmake -j option is used.
95$(DECMN:$(EXEEXT)=).$(SECTION): $(TARGET:$(EXEEXT)=).$(SECTION)
96
97%.$(SECTION): $(srcdir)/%.$(SECTION).in
98 cd $(top_builddir) \
99 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
100
101ifeq (,$(MAKECMDGOALS))
102-include $(DEPS)
103-include $(DECMN_DEP)
104else
105ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
106-include $(DEPS)
107-include $(DECMN_DEP)
108endif
109endif
110