]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/gencnval/Makefile.in
ICU-6.2.13.tar.gz
[apple/icu.git] / icuSources / tools / gencnval / Makefile.in
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
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ## Build directory information
15 subdir = tools/gencnval
16
17 ##
18
19 TARGET_STUB_NAME = gencnval
20
21 SECTION = 1
22
23 MANX_FILES = $(TARGET_STUB_NAME).$(SECTION)
24
25 ALL_MAN_FILES = $(MANX_FILES)
26
27 ## Extra files to remove for 'make clean'
28 CLEANFILES = *~ $(ALL_MAN_FILES) $(DEPS)
29
30 ## Target information
31 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
32
33 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
34 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
35
36 OBJECTS = gencnval.o
37
38 DEPS = $(OBJECTS:.o=.d)
39
40
41 ## List of phony targets
42 .PHONY : all all-local install install-local clean clean-local \
43 distclean distclean-local dist dist-local check \
44 check-local install-man install-manx
45
46 ## Clear suffix list
47 .SUFFIXES :
48
49 ## List of standard targets
50 all: all-local
51 install: install-local
52 clean: clean-local
53 distclean : distclean-local
54 dist: dist-local
55 check: all check-local
56
57 all-local: $(TARGET) $(ALL_MAN_FILES)
58
59 install-local: all-local install-man
60 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
61 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
62
63
64 dist-local:
65
66 clean-local:
67 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
68 $(RMV) $(TARGET) $(OBJECTS)
69
70 distclean-local: clean-local
71 $(RMV) Makefile
72
73 check-local: all-local
74
75 Makefile: $(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
83 install-man: install-manx
84 install-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
99 ifeq (,$(MAKECMDGOALS))
100 -include $(DEPS)
101 else
102 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
103 -include $(DEPS)
104 endif
105 endif
106