]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/tools/gencase/Makefile.in
ICU-6.2.15.tar.gz
[apple/icu.git] / icuSources / tools / gencase / Makefile.in
... / ...
CommitLineData
1## Makefile.in for ICU - tools/gencase
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##
15
16TARGET_STUB_NAME = gencase
17
18SECTION = 8
19
20MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
21
22## Build directory information
23subdir = tools/gencase
24
25## Extra files to remove for 'make clean'
26CLEANFILES = *~ $(DEPS) $(MAN_FILES)
27
28## Target information
29TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
30
31CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
32LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
33
34OBJECTS = gencase.o store.o
35
36DEPS = $(OBJECTS:.o=.d)
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
60# man page
61install-man: $(MAN_FILES)
62 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
63 $(INSTALL_DATA) $< $(DESTDIR)$(mandir)/man$(SECTION)
64
65%.$(SECTION): $(srcdir)/%.$(SECTION).in
66 cd $(top_builddir) \
67 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
68
69# build postscript and pdf formats
70#$(TARGET).ps: $(TARGET).$(SECTION)
71# groff -man < $< > $@
72
73#$(TARGET).pdf: $(TARGET).ps
74# ps2pdf $< $@
75
76dist-local:
77
78clean-local:
79 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
80 $(RMV) $(TARGET) $(OBJECTS)
81
82distclean-local: clean-local
83 $(RMV) Makefile
84
85check-local: all-local
86
87Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
88 cd $(top_builddir) \
89 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
90
91$(TARGET) : $(OBJECTS)
92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
93
94ifeq (,$(MAKECMDGOALS))
95-include $(DEPS)
96else
97ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98-include $(DEPS)
99endif
100endif