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