]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/gencnval/Makefile.in
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / tools / gencnval / Makefile.in
CommitLineData
b75a7d8f 1## Makefile.in for ICU - tools/gencnval
374ca955 2## Copyright (c) 1999-2004, International Business Machines Corporation and
b75a7d8f
A
3## others. All Rights Reserved.
4## Steven R. Loomi
5
6## Install directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14## Build directory information
15subdir = tools/gencnval
16
17##
18
374ca955 19TARGET_STUB_NAME = gencnval
b75a7d8f 20
374ca955 21SECTION = 1
b75a7d8f 22
374ca955 23MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
b75a7d8f 24
374ca955 25ALL_MAN_FILES = $(MANX_FILES)
b75a7d8f
A
26
27## Extra files to remove for 'make clean'
374ca955 28CLEANFILES = *~ $(ALL_MAN_FILES) $(DEPS)
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
34LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
35
36OBJECTS = gencnval.o
37
38DEPS = $(OBJECTS:.o=.d)
39
40
41## List of phony targets
374ca955 42.PHONY : all all-local install install-local clean clean-local \
b75a7d8f 43distclean distclean-local dist dist-local check \
374ca955 44check-local install-man install-manx
b75a7d8f
A
45
46## Clear suffix list
47.SUFFIXES :
48
49## List of standard targets
50all: all-local
51install: install-local
52clean: clean-local
53distclean : distclean-local
54dist: dist-local
55check: all check-local
56
374ca955 57all-local: $(TARGET) $(ALL_MAN_FILES)
b75a7d8f 58
374ca955 59install-local: all-local install-man
b75a7d8f 60 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
374ca955 61 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
b75a7d8f
A
62
63
64dist-local:
65
66clean-local:
67 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
68 $(RMV) $(TARGET) $(OBJECTS)
69
70distclean-local: clean-local
71 $(RMV) Makefile
72
73check-local: all-local
74
75Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
76 cd $(top_builddir) \
77 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
78
79$(TARGET) : $(OBJECTS)
80 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
81
82# man page
374ca955 83install-man: install-manx
b75a7d8f
A
84install-manx: $(MANX_FILES)
85 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
86 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
87
88%.$(SECTION): $(srcdir)/%.$(SECTION).in
89 cd $(top_builddir) \
90 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
b75a7d8f
A
91
92# only on linux probably ?
93#$(TARGET).ps: $(TARGET).$(SECTION)
94# groff -man < $< > $@
95
96#$(TARGET).pdf: $(TARGET).ps
97# ps2pdf $< $@
98
99ifeq (,$(MAKECMDGOALS))
100-include $(DEPS)
101else
102ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
103-include $(DEPS)
104endif
105endif
106