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