]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genccode/Makefile.in
ICU-6.2.15.tar.gz
[apple/icu.git] / icuSources / tools / genccode / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - tools/genccode
374ca955 2## Copyright (c) 1999-2004, International Business Machines Corporation and
b75a7d8f
A
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/genccode
16
17##
18
374ca955
A
19TARGET_STUB_NAME = genccode
20
b75a7d8f
A
21SECTION = 8
22
374ca955 23MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
b75a7d8f
A
24
25ALL_MAN_FILES = $(MANX_FILES)
26
27## Extra files to remove for 'make clean'
374ca955 28CLEANFILES = *~ $(DEPS) $(ALL_MAN_FILES)
b75a7d8f
A
29
30## Target information
374ca955 31TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
b75a7d8f
A
32
33CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil $(BIR_CPPFLAGS)
374ca955 34LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
b75a7d8f
A
35
36OBJECTS = genccode.o
37
38DEPS = $(OBJECTS:.o=.d)
39
40## List of phony targets
41.PHONY : all all-local install install-local clean clean-local \
42distclean distclean-local dist dist-local check \
43check-local install-man install-manx
44
45## Clear suffix list
46.SUFFIXES :
47
48## List of standard targets
49all: all-local
50install: install-local
51clean: clean-local
52distclean : distclean-local
53dist: dist-local
54check: all check-local
55
374ca955 56all-local: $(TARGET) $(ALL_MAN_FILES)
b75a7d8f
A
57
58install-local: all-local install-man
59 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
374ca955 60 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
b75a7d8f
A
61
62# man page
63install-man: install-manx
64install-manx: $(MANX_FILES)
65 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
66 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
67
68%.$(SECTION): $(srcdir)/%.$(SECTION).in
69 cd $(top_builddir) \
70 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
71
72dist-local:
73
74clean-local:
75 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
76 $(RMV) $(TARGET) $(OBJECTS)
77
78distclean-local: clean-local
79 $(RMV) Makefile
80
81check-local: all-local
82
83Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
84 cd $(top_builddir) \
85 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
86
87$(TARGET) : $(OBJECTS)
88 $(LINK.c) $(OUTOPT)$@ $^ $(LIBS)
89
90ifeq (,$(MAKECMDGOALS))
91-include $(DEPS)
92else
93ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
94-include $(DEPS)
95endif
96endif