]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | ## Makefile.in for ICU - tools/genuca |
2 | ## Copyright (c) 1999-2003, International Business Machines Corporation and | |
3 | ## others. All Rights Reserved. | |
4 | ||
5 | ## Source directory information | |
6 | srcdir = @srcdir@ | |
7 | top_srcdir = @top_srcdir@ | |
8 | ||
9 | top_builddir = ../.. | |
10 | ||
11 | include $(top_builddir)/icudefs.mk | |
12 | ||
13 | ## | |
14 | ||
15 | SECTION = 8 | |
16 | ||
17 | MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION) | |
18 | ||
19 | ## Build directory information | |
20 | subdir = tools/genuca | |
21 | ||
22 | ## Extra files to remove for 'make clean' | |
23 | CLEANFILES = *~ $(MAN_FILES) $(DEPS) | |
24 | ||
25 | ## Target information | |
26 | TARGET = genuca$(EXEEXT) | |
27 | ||
28 | CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil | |
29 | LIBS = $(LIBICUI18N) $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M) | |
30 | ||
31 | OBJECTS = genuca.o | |
32 | ||
33 | DEPS = $(OBJECTS:.o=.d) | |
34 | ||
35 | ||
36 | ## List of phony targets | |
37 | .PHONY : all all-local install install-local clean clean-local \ | |
38 | distclean distclean-local dist dist-local check \ | |
39 | check-local install-man | |
40 | ||
41 | ## Clear suffix list | |
42 | .SUFFIXES : | |
43 | ||
44 | ## List of standard targets | |
45 | all: all-local | |
46 | install: install-local | |
47 | clean: clean-local | |
48 | distclean : distclean-local | |
49 | dist: dist-local | |
50 | check: all check-local | |
51 | ||
52 | all-local: $(TARGET) $(MAN_FILES) | |
53 | ||
54 | install-local: all-local install-man | |
55 | $(MKINSTALLDIRS) $(DESTDIR)$(sbindir) | |
56 | $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET) | |
57 | ||
58 | <dist-local: | |
59 | ||
60 | clean-local: | |
61 | test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES) | |
62 | $(RMV) $(TARGET) $(OBJECTS) | |
63 | ||
64 | distclean-local: clean-local | |
65 | $(RMV) Makefile | |
66 | ||
67 | check-local: all-local | |
68 | ||
69 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | |
70 | cd $(top_builddir) \ | |
71 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
72 | ||
73 | $(TARGET) : $(OBJECTS) | |
74 | $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS) | |
75 | ||
76 | ||
77 | # the 'mv' will always fail if you are building in the source dir | |
78 | ||
79 | # man page | |
80 | install-man: $(MAN_FILES) | |
81 | $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION) | |
82 | $(INSTALL_DATA) $< $(DESTDIR)$(mandir)/man$(SECTION) | |
83 | ||
84 | %.$(SECTION): $(srcdir)/%.$(SECTION).in | |
85 | cd $(top_builddir) \ | |
86 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | |
87 | ||
88 | # build postscript and pdf formats | |
89 | #$(TARGET).ps: $(TARGET).$(SECTION) | |
90 | # groff -man < $< > $@ | |
91 | ||
92 | #$(TARGET).pdf: $(TARGET).ps | |
93 | # ps2pdf $< $@ | |
94 | ||
95 | ifeq (,$(MAKECMDGOALS)) | |
96 | -include $(DEPS) | |
97 | else | |
98 | ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),) | |
99 | -include $(DEPS) | |
100 | endif | |
101 | endif |