]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/gensprep/Makefile.in
ICU-6.2.15.tar.gz
[apple/icu.git] / icuSources / tools / gensprep / Makefile.in
CommitLineData
374ca955
A
1## Makefile.in for ICU - tools/gensprep
2## Copyright (c) 2001-2004, International Business Machines Corporation and
b75a7d8f
A
3## others. All Rights Reserved.
4## Steven R. Loomis/Markus W. Scherer
5
6## Source directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14##
15
374ca955
A
16TARGET_STUB_NAME = gensprep
17
b75a7d8f
A
18SECTION = 8
19
374ca955 20MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
b75a7d8f
A
21
22## Build directory information
374ca955 23subdir = tools/gensprep
b75a7d8f
A
24
25## Extra files to remove for 'make clean'
374ca955 26CLEANFILES = *~ $(DEPS) $(MAN_FILES)
b75a7d8f
A
27
28## Target information
374ca955 29TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
b75a7d8f
A
30
31CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
32LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
33
374ca955 34OBJECTS = gensprep.o store.o
b75a7d8f
A
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 \
374ca955 41check-local install-man
b75a7d8f
A
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
374ca955 54all-local: $(TARGET) $(MAN_FILES)
b75a7d8f
A
55
56install-local: all-local install-man
57 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
374ca955 58 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
b75a7d8f
A
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
101