]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/gensprep/Makefile.in
ICU-6.2.10.tar.gz
[apple/icu.git] / icuSources / tools / gensprep / Makefile.in
1 ## Makefile.in for ICU - tools/gensprep
2 ## Copyright (c) 2001-2004, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4 ## Steven R. Loomis/Markus W. Scherer
5
6 ## Source directory information
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ##
15
16 TARGET_STUB_NAME = gensprep
17
18 SECTION = 8
19
20 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
21
22 ## Build directory information
23 subdir = tools/gensprep
24
25 ## Extra files to remove for 'make clean'
26 CLEANFILES = *~ $(DEPS) $(MAN_FILES)
27
28 ## Target information
29 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
30
31 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
32 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
33
34 OBJECTS = gensprep.o store.o
35
36 DEPS = $(OBJECTS:.o=.d)
37
38 ## List of phony targets
39 .PHONY : all all-local install install-local clean clean-local \
40 distclean distclean-local dist dist-local check \
41 check-local install-man
42
43 ## Clear suffix list
44 .SUFFIXES :
45
46 ## List of standard targets
47 all: all-local
48 install: install-local
49 clean: clean-local
50 distclean : distclean-local
51 dist: dist-local
52 check: all check-local
53
54 all-local: $(TARGET) $(MAN_FILES)
55
56 install-local: all-local install-man
57 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
58 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)
59
60 # man page
61 install-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
76 dist-local:
77
78 clean-local:
79 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
80 $(RMV) $(TARGET) $(OBJECTS)
81
82 distclean-local: clean-local
83 $(RMV) Makefile
84
85 check-local: all-local
86
87 Makefile: $(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
94 ifeq (,$(MAKECMDGOALS))
95 -include $(DEPS)
96 else
97 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
98 -include $(DEPS)
99 endif
100 endif
101