]>
Commit | Line | Data |
---|---|---|
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 | |
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 | ||
374ca955 | 19 | TARGET_STUB_NAME = gencnval |
b75a7d8f | 20 | |
374ca955 | 21 | SECTION = 1 |
b75a7d8f | 22 | |
374ca955 | 23 | MANX_FILES = $(TARGET_STUB_NAME).$(SECTION) |
b75a7d8f | 24 | |
374ca955 | 25 | ALL_MAN_FILES = $(MANX_FILES) |
b75a7d8f A |
26 | |
27 | ## Extra files to remove for 'make clean' | |
374ca955 | 28 | CLEANFILES = *~ $(ALL_MAN_FILES) $(DEPS) |
b75a7d8f A |
29 | |
30 | ## Target information | |
374ca955 | 31 | TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT) |
b75a7d8f A |
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 | |
374ca955 | 42 | .PHONY : all all-local install install-local clean clean-local \ |
b75a7d8f | 43 | distclean distclean-local dist dist-local check \ |
374ca955 | 44 | check-local install-man install-manx |
b75a7d8f A |
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 | ||
374ca955 | 57 | all-local: $(TARGET) $(ALL_MAN_FILES) |
b75a7d8f | 58 | |
374ca955 | 59 | install-local: all-local install-man |
b75a7d8f | 60 | $(MKINSTALLDIRS) $(DESTDIR)$(bindir) |
374ca955 | 61 | $(INSTALL) $(TARGET) $(DESTDIR)$(bindir) |
b75a7d8f A |
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 | |
374ca955 | 83 | install-man: install-manx |
b75a7d8f A |
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 | |
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 | ||
99 | ifeq (,$(MAKECMDGOALS)) | |
100 | -include $(DEPS) | |
101 | else | |
102 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
103 | -include $(DEPS) | |
104 | endif | |
105 | endif | |
106 |