1 ## Makefile.in for ICU - tools/genprops
2 ## Copyright (c) 1999-2003, International Business Machines Corporation and
3 ## others. All Rights Reserved.
6 ## Source directory information
8 top_srcdir = @top_srcdir@
12 include $(top_builddir)/icudefs.mk
18 MAN_FILES = $(TARGET:$(EXEEXT)=).$(SECTION)
20 ## Build directory information
21 subdir = tools/genprops
23 ICUDATADIR=$(top_builddir)/data
24 UNICODEDATADIR=$(top_srcdir)/../data/unidata
26 ## Extra files to remove for 'make clean'
27 CLEANFILES = *~ $(DEPS) $(RES_FILES) $(TEST_FILES) $(MAN_FILES)
30 TARGET = genprops$(EXEEXT)
32 CPPFLAGS += -I$(top_builddir)/common -I$(top_srcdir)/common -I$(srcdir)/../toolutil
33 LIBS = $(LIBICUTOOLUTIL) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
35 OBJECTS = genprops.o props2.o propsvec.o store.o
37 DEPS = $(OBJECTS:.o=.d)
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
47 ## List of standard targets
49 install: install-local
51 distclean : distclean-local
53 check: all check-local
55 all-local: $(TARGET) build-data $(MAN_FILES)
57 install-local: all-local install-man
58 $(MKINSTALLDIRS) $(DESTDIR)$(sbindir)
59 $(INSTALL) $(TARGET) $(DESTDIR)$(sbindir)/$(TARGET)
62 install-man: $(MAN_FILES)
63 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
64 $(INSTALL_DATA) $< $(DESTDIR)$(mandir)/man$(SECTION)
66 %.$(SECTION): $(srcdir)/%.$(SECTION).in
68 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
70 # build postscript and pdf formats
71 #$(TARGET).ps: $(TARGET).$(SECTION)
72 # groff -man < $< > $@
74 #$(TARGET).pdf: $(TARGET).ps
80 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
81 $(RMV) $(TARGET) $(OBJECTS)
83 distclean-local: clean-local
86 check-local: all-local
88 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
90 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
92 $(TARGET) : $(OBJECTS)
93 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
95 ifeq (,$(MAKECMDGOALS))
98 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)