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