]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genbrk/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / tools / genbrk / Makefile.in
CommitLineData
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
6srcdir = @srcdir@
7top_srcdir = @top_srcdir@
8
9top_builddir = ../..
10
11include $(top_builddir)/icudefs.mk
12
13##
14
15SECTION = 1
16
17MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
18
19## Build directory information
20subdir = tools/genbrk
21
22## Extra files to remove for 'make clean'
23CLEANFILES = *~ $(MAN_FILES) $(DEPS)
24
25## Target information
26TARGET = genbrk$(EXEEXT)
27
28CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
29LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
30
31OBJECTS = genbrk.o
32
33DEPS = $(OBJECTS:.o=.d)
34
35## List of phony targets
36.PHONY : all all-local install install-local clean clean-local \
37distclean distclean-local dist dist-local check \
38check-local install-man
39
40## Clear suffix list
41.SUFFIXES :
42
43## List of standard targets
44all: all-local
45install: install-local
46clean: clean-local
47distclean : distclean-local
48dist: dist-local
49check: all check-local
50
51all-local: $(TARGET)
52
53install-local: all-local
54 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
55 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
56
57<dist-local:
58
59clean-local:
60 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
61 $(RMV) $(TARGET) $(OBJECTS)
62
63distclean-local: clean-local
64 $(RMV) Makefile
65
66check-local: all-local
67
68Makefile: $(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
90ifeq (,$(MAKECMDGOALS))
91-include $(DEPS)
92else
93ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
94-include $(DEPS)
95endif
96endif
97