]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/genidna/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / tools / genidna / Makefile.in
CommitLineData
b75a7d8f
A
1## Makefile.in for ICU - tools/genidna
2## Copyright (c) 2001-2003, International Business Machines Corporation and
3## others. All Rights Reserved.
4## Steven R. Loomis/Markus W. Scherer
5
6## Source directory information
7srcdir = @srcdir@
8top_srcdir = @top_srcdir@
9
10top_builddir = ../..
11
12include $(top_builddir)/icudefs.mk
13
14##
15
16SECTION = 8
17
18MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
19
20## Build directory information
21subdir = tools/genidna
22
23ICUDATADIR=$(top_builddir)/data
24UNICODEDATADIR=$(top_srcdir)/../data/unidata
25
26## Extra files to remove for 'make clean'
27CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(MAN_FILES)
28
29## Target information
30TARGET = genidna$(EXEEXT)
31
32CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
33LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
34
35OBJECTS = genidna.o store.o
36
37DEPS = $(OBJECTS:.o=.d)
38
39## List of phony targets
40.PHONY : all all-local install install-local clean clean-local \
41distclean distclean-local dist dist-local check \
42check-local build-data install-man
43
44## Clear suffix list
45.SUFFIXES :
46
47## List of standard targets
48all: all-local
49install: install-local
50clean: clean-local
51distclean : distclean-local
52dist: dist-local
53check: all check-local
54
55all-local: $(TARGET) build-data $(MAN_FILES)
56
57install-local: all-local install-man
58 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
59 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
60
61# man page
62install-man: $(MAN_FILES)
63 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
64 $(INSTALL_DATA) $< $(DESTDIR)$(mandir)/man$(SECTION)
65
66%.$(SECTION): $(srcdir)/%.$(SECTION).in
67 cd $(top_builddir) \
68 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
69
70# build postscript and pdf formats
71#$(TARGET).ps: $(TARGET).$(SECTION)
72# groff -man < $< > $@
73
74#$(TARGET).pdf: $(TARGET).ps
75# ps2pdf $< $@
76
77dist-local:
78
79clean-local:
80 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
81 $(RMV) $(TARGET) $(OBJECTS)
82
83distclean-local: clean-local
84 $(RMV) Makefile
85
86check-local: all-local
87
88Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
89 cd $(top_builddir) \
90 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
91
92$(TARGET) : $(OBJECTS)
93 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
94
95ifeq (,$(MAKECMDGOALS))
96-include $(DEPS)
97else
98ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
99-include $(DEPS)
100endif
101endif
102