]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/genprops/Makefile.in
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / tools / genprops / Makefile.in
1 ## Makefile.in for ICU - tools/genprops
2 ## Copyright (c) 1999-2003, International Business Machines Corporation and
3 ## others. All Rights Reserved.
4 ## Steven R. Loomis
5
6 ## Source directory information
7 srcdir = @srcdir@
8 top_srcdir = @top_srcdir@
9
10 top_builddir = ../..
11
12 include $(top_builddir)/icudefs.mk
13
14 ##
15
16 SECTION = 8
17
18 MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
19
20 ## Build directory information
21 subdir = tools/genprops
22
23 ICUDATADIR=$(top_builddir)/data
24 UNICODEDATADIR=$(top_srcdir)/../data/unidata
25
26 ## Extra files to remove for 'make clean'
27 CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(MAN_FILES)
28
29 ## Target information
30 TARGET = genprops$(EXEEXT)
31
32 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
33 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
34
35 OBJECTS = genprops.o props2.o propsvec.o store.o
36
37 DEPS = $(OBJECTS:.o=.d)
38
39 ## List of phony targets
40 .PHONY : all all-local install install-local clean clean-local \
41 distclean distclean-local dist dist-local check \
42 check-local build-data install-man
43
44 ## Clear suffix list
45 .SUFFIXES :
46
47 ## List of standard targets
48 all: all-local
49 install: install-local
50 clean: clean-local
51 distclean : distclean-local
52 dist: dist-local
53 check: all check-local
54
55 all-local: $(TARGET) build-data $(MAN_FILES)
56
57 install-local: all-local install-man
58 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
59 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
60
61 # man page
62 install-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
77 dist-local:
78
79 clean-local:
80 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
81 $(RMV) $(TARGET) $(OBJECTS)
82
83 distclean-local: clean-local
84 $(RMV) Makefile
85
86 check-local: all-local
87
88 Makefile: $(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
95 ifeq (,$(MAKECMDGOALS))
96 -include $(DEPS)
97 else
98 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
99 -include $(DEPS)
100 endif
101 endif
102