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