]> git.saurik.com Git - apple/icu.git/blame_incremental - icuSources/tools/gencnval/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / tools / gencnval / Makefile.in
... / ...
CommitLineData
1## Makefile.in for ICU - tools/gencnval
2## Copyright (c) 1999-2004, International Business Machines Corporation and
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
19TARGET_STUB_NAME = gencnval
20
21SECTION = 1
22
23MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
24
25ALL_MAN_FILES = $(MANX_FILES)
26
27## Extra files to remove for 'make clean'
28CLEANFILES = *~ $(ALL_MAN_FILES) $(DEPS)
29
30## Target information
31TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
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
42.PHONY : all all-local install install-local clean clean-local \
43distclean distclean-local dist dist-local check \
44check-local install-man install-manx
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
57all-local: $(TARGET) $(ALL_MAN_FILES)
58
59install-local: all-local install-man
60 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
61 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
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
83install-man: install-manx
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
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