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